private static void ConfigureTypesForTestAttribute()
        {
            var testSetting = new TestImplementation();

            ObjectFactory.Configure(x => x.For <IShouldBeInjectedSetting>().Use(testSetting));
            var notASetting = new ShouldNotBeInjectedSetting();

            ObjectFactory.Configure(x => x.For <IShouldNotBeInjectedSetting>().Use(notASetting));
        }
Exemplo n.º 2
0
 private static void ConfigureTypesForTestAttribute()
 {
     var testSetting = new TestImplementation();
     ObjectFactory.Configure(x => x.For<IShouldBeInjectedSetting>().Use(testSetting));
     var notASetting = new ShouldNotBeInjectedSetting();
     ObjectFactory.Configure(x => x.For<IShouldNotBeInjectedSetting>().Use(notASetting));
 }