I am writing Unit/Component test using In Memory DB. When I write Unit/Component test, I came across with the following question.
I have the following two BL methods.
- ToCreate
- ToGet
So when I write Unit/Component test, I need to create some sample data for the unit test.
When I write a Unit/Component test for "ToGet" method, can I use ToCreate (BL method) to create sample data or When I write a Unit/Component test for "ToCreate", Can I use "ToGet" method to check the created data? Is that a correct choice?