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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
.net × 1444c# × 654
architecture × 107
design-patterns × 100
design × 93
asp.net × 69
unit-testing × 50
asp.net-mvc × 48
wcf × 47
object-oriented × 41
wpf × 41
entity-framework × 40
java × 38
exceptions × 38
vb.net × 36
sql-server × 33
dependency-injection × 31
visual-studio × 31
windows × 30
winforms × 30
multithreading × 28
database × 27
programming-practices × 27
domain-driven-design × 26
asp.net-core × 25