I recently started creating service layers and made announcements like:
MyService myService = new MyService(); myService.DoSomething();
This was inspired by some ASP.NET MVC videos, and I like the template.
Then I started creating interfaces and mocks like:
IMyService myService = new MockMyService(); myService.DoSomething();
Therefore, I can isolate parts of the code for testing. But now my service level folder is loaded with classes, interfaces and layouts:
IServiceTypeA.cs ServiceTypeA.cs MockServiceTypeA.cs IServiceTypeB.cs ServiceTypeB.cs MockServiceTypeB.cs ... IServiceTypeZ.cs ServiceTypeZ.cs MockServiceTypeZ.cs
How do you arrange them logically?
source share