public void is_bottle_service_negative()
        {
            BottleService.IsBottleService(typeof(IActivator)).ShouldBeFalse();
            BottleService.IsBottleService(typeof(IDeactivator)).ShouldBeFalse();

            BottleService.IsBottleService(typeof(MarkerBottleInterface)).ShouldBeFalse();
        }
Beispiel #2
0
        private BottleService CreateBottleService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new BottleService(userId);

            return(service);
        }
        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_services()
        {
            var log = new PackageLog();
            var theService = new BottleService(new StubService(), log);
            var services = BottleServiceFinder.Find(theAssemblies, log);

            services.ShouldHaveTheSameElementsAs(theService);
        }
Beispiel #5
0
        // GET: Bottle
        public ActionResult Index()
        {
            var userID  = Guid.Parse(User.Identity.GetUserId());
            var service = new BottleService(userID);
            var model   = service.GetBottle();

            return(View(model));
        }
 public void is_bottle_service()
 {
     BottleService.IsBottleService(typeof(InnerService)).ShouldBeTrue();
 }