public void BootStrapper_Can_Auto_Resolve_New_Registrations() { var bootstrapper = new TestBootStrapper(); bootstrapper.Registrations.Add<IBootStrapperFoo>(); var application = bootstrapper.Bootstrap(); var foo = application.Container.Resolve<IBootStrapperFoo>(); foo.ShouldNotBeNull(); foo.ShouldBeOfType<TestBootStrapperFoo>(); }
public void BaseNancyBootstrapper_Automatically_loads_INancyEngine() { var bootstrapper = new TestBootStrapper(); var application = bootstrapper.Bootstrap(); var engine = application.GetEngine(); engine.ShouldNotBeNull(); engine.ShouldBeOfType<NancyEngine>(); }