public void CreateContainerShouldInitializeContainer() { var bootstrapper = new DefaultGraceBootstrapper(); var container = bootstrapper.CallCreateContainer(); Assert.IsNotNull(container); Assert.IsInstanceOfType(container, typeof(DependencyInjectionContainer)); }
public void RunAddsCompositionContainerToContainer() { var bootstrapper = new DefaultGraceBootstrapper(); var createdContainer = bootstrapper.CallCreateContainer(); var returnedContainer = createdContainer.Locate <DependencyInjectionContainer>(); Assert.IsNotNull(returnedContainer); Assert.AreEqual(typeof(DependencyInjectionContainer), returnedContainer.GetType()); }