Hot answers tagged

4 votes
Accepted

Where to put interface files for mocking aka what are best practices for organizing interfaces in a C#/.NET Core project with NSubstitute, Moq etc.?

Decisions like this are usually best guided by the Principle of Least Astonishment: What pattern will other developers recognize and understand quickly? First, C# projects have a very common ...
Stephen Jennings's user avatar
1 vote

Where to put interface files for mocking aka what are best practices for organizing interfaces in a C#/.NET Core project with NSubstitute, Moq etc.?

Your first two disadvantages are odd and suggest to me that your whole approach to coding might be different from 'normal' Disadvantage: Accessing the interface from the class may require tools like ...
Ewan's user avatar
  • 71k

Only top scored, non community-wiki answers of a minimum length are eligible