示例#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;
 }