Closed Xazin closed 1 year ago
@Xazin tests for .fromJson()
method for ContactFormDTO have already been implemented. Is there anything more to be implemented for the ContactFormDTO? (There is no toDomain()
method here). I'll work on CrowdactionDTO in the meantime
Apologies for marking the entire issue closed. Only meant to mark the Images DTO task as complete. Have reopened.
Updated with some new DTOs on the list
All DTO unit tests have been completed and pushed to development.
As part of the effort of implementing high coverage in our application, we will need to implement tests for all of our data transfer objects known as DTOs.
For each DTO, we will need:
toDomain()
functionalityfromJson()
functionalityThe DTOs we need to implement tests for are:
Note: Find a good way to separate the fixture from the test itself (eg.
/tests/dto/crowdaction/fixtures.dart
and/tests/dto/crowdaction/tests.dart
), to keep the test file as clean as possible. Remember to use readable names for the variables, and try to explain the tests best as possible, to let others more easily understand the tests.