protected override void CustomizeFixture(IFixture fixture) { var scope = IntegrationTestContainerFactory.Container; var contextFixture = new TestContextFixture(scope, fixture); contextFixture.SetUp(); fixture.Register(() => contextFixture); }
protected override void CustomizeFixture(IFixture fixture) { var scope = new StructureMapDependencyScope(IntegrationTestContainerFactory.Container); var contextFixture = new TestContextFixture(scope); contextFixture.SetUp(); //fixture.Customizations.Add(scope.GetInstance<IntegrationTestDefaultValueBuilder>()); fixture.Register(() => contextFixture); fixture.Customizations.Add(new ContainerBuilder(scope)); // always last }