public MockContext(IMockProfile profile) { if (profile == null) { throw new ArgumentNullException(nameof(profile)); } _profile = profile; }
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; }
public TestingProfile(IMockProfile mocks, IServiceProfile services) : this(mocks, services, true, true) { }
public MockContext(IMockProfile profile) { _profile = profile; }