C
C#10mo ago
TJacken

❔ 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).
1 Reply
Accord
Accord10mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.