public void CreateContainerShouldInitializeContainer() { var bootstrapper = new DefaultDryIocBootstrapper(); IContainer container = bootstrapper.CallCreateContainer(); Assert.IsNotNull(container); Assert.IsInstanceOfType(container, typeof(IContainer)); }
public void RunAddsCompositionContainerToContainer() { var bootstrapper = new DefaultDryIocBootstrapper(); var createdContainer = bootstrapper.CallCreateContainer(); var returnedContainer = createdContainer.Resolve <IContainer>(); Assert.IsNotNull(returnedContainer); Assert.IsTrue(returnedContainer.GetType().GetInterfaces().Contains(typeof(IContainer))); }