Exemplo n.º 1
0
        protected BaseTestFixture(ITestingProfile testingProfile)
        {
            if (testingProfile == null)
            {
                throw new ArgumentNullException(nameof(testingProfile));
            }

            _testingContext = new TestingContext(testingProfile);
        }
        public TestingContext(ITestingProfile profile)
        {
            if (profile == null)
            {
                throw new ArgumentNullException(nameof(profile));
            }

            _mockContext = new MockContext(profile.Mocks);

            _mockContext.Build();

            _serviceContext = GetContext(profile.Services);

            _serviceContext.Build();

            _refreshMocks = profile.RefreshMocks;

            _reuseServices = profile.ReuseServices;
        }
 protected SequentialTestFixture(ITestingProfile testingProfile) : base(testingProfile)
 {
 }
Exemplo n.º 4
0
 protected ParallelTestFixture(ITestingProfile testingProfile) : base(testingProfile)
 {
 }