public void ShouldNotRegisterDefaultServicesAndTypes() { var bootstrapper = new NonconfiguredBootstrapper(); bootstrapper.Run(false); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IEventAggregator))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IRegionManager))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(RegionAdapterMappings))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IContainerFacade))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IModuleLoader))); }
public void ShouldNotRegisterDefaultServicesAndTypes() { var bootstrapper = new NonconfiguredBootstrapper(); bootstrapper.Run(false); #if !SILVERLIGHT Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IEventAggregator))); #endif Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IRegionManager))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(RegionAdapterMappings))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IServiceLocator))); Assert.IsFalse(bootstrapper.HasRegisteredType(typeof(IModuleInitializer))); }