Tag: Stub

How to write unit tests with Entity Framework Core?

How to write unit tests with Entity Framework Core?

Introduction The unit test will test only the SUT(system under testing) behavior and correctness and it will not test the SUT’s collaborators You might raise a question how to manage dependencies or eliminate them from the unit test, it is a very good question but to answer for this question is very hard. Fortunately, we…

Read More Read More

Test Double

Test Double

Introduction In a well-designed application,  SUT will not do everything that it required instead it will delegate to one or more collaborators to get things done. Managing these dependencies is one of the hard task and unit test focus on SUT, not other collaborators otherwise it will break the FIRST property. Fortunately, we have Test…

Read More Read More