public void ConfigureWithXmlModulePropertySetTest() { DependencyInjectionContainer container = new DependencyInjectionContainer(); container.ConfigureWithXml(); int intProperty = (int)container.Locate("IntProperty"); Assert.Equal(5, intProperty); }
public void ConfigureWithXmlModuleTest() { DependencyInjectionContainer container = new DependencyInjectionContainer(); container.ConfigureWithXml(); IBasicService basicService = container.Locate<IBasicService>(); Assert.NotNull(basicService); }
public void ConfigureWithXmlExportTest() { DependencyInjectionContainer container = new DependencyInjectionContainer(); container.ConfigureWithXml(); IConstructorImportService importService = container.Locate<IConstructorImportService>(); Assert.NotNull(importService); }
public void ConfigureWithXmlThirdSectionWithShortNames() { DependencyInjectionContainer container = new DependencyInjectionContainer(); container.ConfigureWithXml("thirdGrace"); IConstructorImportService importService = container.Locate<IConstructorImportService>(); Assert.NotNull(importService); Assert.Equal(5, container.Locate("IntProperty")); }