Esempio n. 1
0
        protected override void CustomizeFixture(IFixture fixture)
        {
            var scope          = IntegrationTestContainerFactory.Container;
            var contextFixture = new TestContextFixture(scope, fixture);

            contextFixture.SetUp();

            fixture.Register(() => contextFixture);
        }
Esempio n. 2
0
        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
        }