public void CreateModuleCatalogShouldInitializeModuleCatalog() { var bootstrapper = new DefaultBootstrapper(); bootstrapper.CallCreateModuleCatalog(); Assert.IsNotNull(bootstrapper.BaseModuleCatalog); }
public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(Microsoft.Practices.ServiceLocation.ActivationException))); }
public void ConfigureDefaultRegionBehaviorsShouldAddAutoPopulateRegionBehavior() { var bootstrapper = new DefaultBootstrapper(); CreateAndConfigureServiceLocatorWithDefaultRegionBehaviors(); bootstrapper.CallConfigureDefaultRegionBehaviors(); Assert.IsTrue(bootstrapper.DefaultRegionBehaviorTypes.ContainsKey(AutoPopulateRegionBehavior.BehaviorKey)); }
public void ConfigureDefaultRegionBehaviorsShouldAddOneDefaultBehaviors() { var bootstrapper = new DefaultBootstrapper(); CreateAndConfigureServiceLocatorWithDefaultRegionBehaviors(); bootstrapper.CallConfigureDefaultRegionBehaviors(); Assert.AreEqual(1, bootstrapper.DefaultRegionBehaviorTypes.Count()); }
public void CreateLoggerInitializesLogger() { var bootstrapper = new DefaultBootstrapper(); bootstrapper.CallCreateLogger(); Assert.IsNotNull(bootstrapper.BaseLogger); Assert.IsInstanceOfType(bootstrapper.BaseLogger, typeof(TextLogger)); }
public void ShellDefaultsToNull() { var bootstrapper = new DefaultBootstrapper(); Assert.IsNull(bootstrapper.BaseShell); }
public void ModuleCatalogDefaultsToNull() { var bootstrapper = new DefaultBootstrapper(); Assert.IsNull(bootstrapper.BaseModuleCatalog); }
public void LoggerDefaultsToNull() { var bootstrapper = new DefaultBootstrapper(); Assert.IsNull(bootstrapper.BaseLogger); }