AlexTelon / FlexiCharge-Backend

6 stars 11 forks source link

Add mock data for starting a transaction #205

Open loan21xw opened 11 months ago

loan21xw commented 11 months ago

As starting a transaction requires a charger to be connected, testing the starting and stopping of a charging session is hard. Instead, we can create a fake charger that always responds as if it was connected. This means that a specific chargerID can be used to test. What needs to be done:

Randomizing certain data in the responses might be a good idea.

loan21xw commented 11 months ago

Later it might be a good idea to create a "deeper" fake charger that behaves like a real charger, providing updates and such, but this is a good start and shouldn't take too long to implement.