3 ms·
The View Model has a dependency on a repository that is injected in via constructor injection. I don't think you understand what DI means.
by nahname 14y ago
The View Model has a dependency on a repository that is injected in via constructor injection. I don't think you understand what DI means.
- tarr11 14y agoShims do not require DI, ViewModels, or Repositories. The second link from MSDN explains this in more detail. The first one just uses those things in their test examples, but they are not required to use shims. Here's an example: // Make DateTime.Now always return midnight Jan 1, 2012 ShimDateTime.NowGet = () => new DateTime(2012, 1, 1);