Write Unit Test with XUnit, NSubstitute and fakeDb in .net core

For good code and achieve code quality, unit test cases are crucial in any of the development technology these days. Below is the standard…