예제 #1
0
        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);
        }
예제 #2
0
        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));
        }
예제 #3
0
        public void finds_the_service_types()
        {
            var types = BottleServiceFinder.FindTypes(theAssemblies);

            types.Contains(typeof(StubService)).ShouldBeTrue();
        }