public void finds_the_services() { var log = new PackageLog(); var theService = new BottleService(new StubService(), log); var services = BottleServiceFinder.Find(theAssemblies, log); services.ShouldHaveTheSameElementsAs(theService); }
public void finds_the_bootstrappers() { var bootstrappers = BottleServiceFinder.FindBootstrappers(theAssemblies); var types = bootstrappers.Select(x => x.GetType()); types.ShouldContain(typeof(EmptyBootstrapper)); types.ShouldContain(typeof(NonBottleServiceBootstrapper)); types.ShouldContain(typeof(StubServiceBootstrapper)); }
public void finds_the_service_types() { var types = BottleServiceFinder.FindTypes(theAssemblies); types.Contains(typeof(StubService)).ShouldBeTrue(); }