❔ Unit testing xUnit, NSubstitute and FluentAssertion.
Hello to everybody, do you know any good blog or some resource which describe unit testing principles with xUnit and NSubstitute.
Additional questions, what is best approach to mock database?
I have DbContext should I mock what fetching data from DbContext return or I need to populate context with fake data before running test (setup).
Additional questions, what is best approach to mock database?
I have DbContext should I mock what fetching data from DbContext return or I need to populate context with fake data before running test (setup).