Пример #1
0
 public MockContext(IMockProfile profile)
 {
     if (profile == null)
     {
         throw new ArgumentNullException(nameof(profile));
     }
     _profile = profile;
 }
Пример #2
0
 public TestingProfile(IMockProfile mocks, IServiceProfile services, bool refreshMocks = true,
                       bool reuseServices = true)
 {
     Mocks         = mocks ?? throw new ArgumentNullException(nameof(mocks));
     Services      = services ?? throw new ArgumentNullException(nameof(services));
     RefreshMocks  = refreshMocks;
     ReuseServices = reuseServices;
 }
Пример #3
0
 public TestingProfile(IMockProfile mocks, IServiceProfile services)
     : this(mocks, services, true, true)
 {
 }
Пример #4
0
 public MockContext(IMockProfile profile)
 {
     _profile = profile;
 }