public void ContainerDefaultsToNull() { var bootstrapper = new DefaultWindsorBootstrapper(); var container = bootstrapper.BaseContainer; Assert.IsNull(container); }
public void ContainerDefaultsToNull() { var bootstrapper = new DefaultWindsorBootstrapper(); var container = bootstrapper.BaseContainer; Assert.IsNull(container); }
public void ConfigureContainerAddsLoggerFacadeToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var returnedCatalog = bootstrapper.BaseContainer.Resolve<ILoggerFacade>(); Assert.IsNotNull(returnedCatalog); }
public void ConfigureContainerAddsModuleCatalogToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var returnedCatalog = bootstrapper.BaseContainer.Resolve<IModuleCatalog>(); Assert.IsNotNull(returnedCatalog); Assert.IsTrue(returnedCatalog is ModuleCatalog); }
public void CreateContainerShouldInitializeContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); IWindsorContainer container = bootstrapper.CallCreateContainer(); Assert.IsNotNull(container); Assert.IsInstanceOfType(container, typeof(IWindsorContainer)); }
public void CreateContainerShouldInitializeContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); IWindsorContainer container = bootstrapper.CallCreateContainer(); Assert.IsNotNull(container); Assert.IsInstanceOfType(container, typeof(IWindsorContainer)); }
public void RegisterFrameworkExceptionTypesShouldRegisterResolutionFailedException() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(Castle.MicroKernel.ComponentNotFoundException))); }
public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(Microsoft.Practices.ServiceLocation.ActivationException))); }
public void ConfigureContainerAddsLoggerFacadeToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var returnedCatalog = bootstrapper.BaseContainer.Resolve <ILoggerFacade>(); Assert.IsNotNull(returnedCatalog); }
public void ConfigureContainerAddsModuleCatalogToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var returnedCatalog = bootstrapper.BaseContainer.Resolve <IModuleCatalog>(); Assert.IsNotNull(returnedCatalog); Assert.IsTrue(returnedCatalog is ModuleCatalog); }
public void ConfigureContainerAddsRegionNavigationJournalToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var actual1 = bootstrapper.BaseContainer.Resolve<IRegionNavigationJournal>(); var actual2 = bootstrapper.BaseContainer.Resolve<IRegionNavigationJournal>(); Assert.IsNotNull(actual1); Assert.IsNotNull(actual2); Assert.AreNotSame(actual1, actual2); }
public void ConfigureContainerAddsRegionNavigationJournalToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var actual1 = bootstrapper.BaseContainer.Resolve <IRegionNavigationJournal>(); var actual2 = bootstrapper.BaseContainer.Resolve <IRegionNavigationJournal>(); Assert.IsNotNull(actual1); Assert.IsNotNull(actual2); Assert.AreNotSame(actual1, actual2); }
public void ConfigureContainerAddsNavigationTargetHandlerToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var actual1 = bootstrapper.BaseContainer.Resolve <IRegionNavigationContentLoader>(); var actual2 = bootstrapper.BaseContainer.Resolve <IRegionNavigationContentLoader>(); Assert.IsNotNull(actual1); Assert.IsNotNull(actual2); Assert.AreSame(actual1, actual2); }
public void RegisterFrameworkExceptionTypesShouldRegisterResolutionFailedException() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(Castle.MicroKernel.ComponentNotFoundException))); }
public void RegisterFrameworkExceptionTypesShouldRegisterActivationException() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.CallRegisterFrameworkExceptionTypes(); Assert.IsTrue(ExceptionExtensions.IsFrameworkExceptionRegistered( typeof(Microsoft.Practices.ServiceLocation.ActivationException))); }
public void ConfigureContainerAddsNavigationTargetHandlerToContainer() { var bootstrapper = new DefaultWindsorBootstrapper(); bootstrapper.Run(); var actual1 = bootstrapper.BaseContainer.Resolve<IRegionNavigationContentLoader>(); var actual2 = bootstrapper.BaseContainer.Resolve<IRegionNavigationContentLoader>(); Assert.IsNotNull(actual1); Assert.IsNotNull(actual2); Assert.AreSame(actual1, actual2); }