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