public AdviceController(IAdviceApplicationService adviceApplicationService
                         , IMentorApplicationService mentorApplicationService
                         , ISemaphoreApplicationService semaphoreApplicationService)
 {
     _adviceApplicationService    = adviceApplicationService;
     _semaphoreApplicationService = semaphoreApplicationService;
     _mentorApplicationService    = mentorApplicationService;
 }
 public CompanyAdviceController(IAdviceApplicationService adviceApplicationService
     , IMentorApplicationService mentorApplicationService
     , ISemaphoreApplicationService semaphoreApplicationService
     , ICompanyApplicationService companyApplicationService) 
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _companyApplicationService = companyApplicationService;
 }
 public IngredientAdviceController(IAdviceApplicationService adviceApplicationService
                                   , IIngredientApplicationService ingredientApplicationService
                                   , IMentorApplicationService mentorApplicationService
                                   , ISemaphoreApplicationService semaphoreApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _ingredientApplicationService = ingredientApplicationService;
 }
 public BrandAdviceController(IAdviceApplicationService adviceApplicationService
                              , IBrandApplicationService brandApplicationService
                              , IMentorApplicationService mentorApplicationService
                              , ISemaphoreApplicationService semaphoreApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _brandApplicationService = brandApplicationService;
 }
 public CountryAdviceController(IAdviceApplicationService adviceApplicationService
                                , ICountryApplicationService countryApplicationService
                                , IMentorApplicationService mentorApplicationService
                                , ISemaphoreApplicationService semaphoreApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _countryApplicationService = countryApplicationService;
 }
 public BrandAdviceController(IAdviceApplicationService adviceApplicationService
     , IBrandApplicationService brandApplicationService
     , IMentorApplicationService mentorApplicationService
     , ISemaphoreApplicationService semaphoreApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _brandApplicationService = brandApplicationService;
 }
 public IngredientAdviceController(IAdviceApplicationService adviceApplicationService
     , IIngredientApplicationService ingredientApplicationService
     , IMentorApplicationService mentorApplicationService
     , ISemaphoreApplicationService semaphoreApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _ingredientApplicationService = ingredientApplicationService;
 }
 public ProductAdviceController(IAdviceApplicationService adviceApplicationService
     , IProductApplicationService productApplicationService
     , IMentorApplicationService mentorApplicationService
     , ISemaphoreApplicationService semaphoreApplicationService, ICompanyApplicationService companyApplicationService, IBrandApplicationService brandApplicationService, IProductAdviceApplicationService productAdviceApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _productApplicationService = productApplicationService;
     _brandApplicationService = brandApplicationService;
     _productAdviceApplicationService = productAdviceApplicationService;
     _companyApplicationService = companyApplicationService;
 }
Exemple #9
0
 public ProductAdviceController(IAdviceApplicationService adviceApplicationService
                                , IProductApplicationService productApplicationService
                                , IMentorApplicationService mentorApplicationService
                                , ISemaphoreApplicationService semaphoreApplicationService, ICompanyApplicationService companyApplicationService, IBrandApplicationService brandApplicationService, IProductAdviceApplicationService productAdviceApplicationService)
     : base(adviceApplicationService, mentorApplicationService, semaphoreApplicationService)
 {
     _productApplicationService       = productApplicationService;
     _brandApplicationService         = brandApplicationService;
     _productAdviceApplicationService = productAdviceApplicationService;
     _companyApplicationService       = companyApplicationService;
 }
        protected override void Before_all_specs()
        {
            SetupDatabase(ShopGunSpecBase.Database.ShopGun, typeof (Base).Assembly);

            RepositoryFactory = CreateStub<RepositoryFactory<IAdviceRepository, AdviceBase>>();

            _adviceApplicationService = new AdviceApplicationService(null, null);

            var mentorRepository = RepositoryFactory.Build<IRepository<Mentor>, Mentor>();

            _mentor = new Mentor
                          {
                              MentorName = "Consumentor"
                          };
            mentorRepository.Add(_mentor);
            mentorRepository.Persist();


            var semaphoreRepository = RepositoryFactory.Build<IRepository<Semaphore>, Semaphore>();

            _redSemaphore = new Semaphore
                                {
                                    ColorName = "Red",
                                    Value = -1
                                };
            semaphoreRepository.Add(_redSemaphore);
            _greenSemaphore = new Semaphore
                                  {
                                      ColorName = "Green",
                                      Value = 1
                                  };
            semaphoreRepository.Add(_greenSemaphore);
            semaphoreRepository.Persist();


            var productRepository = RepositoryFactory.Build<IRepository<Product>, Product>();

            _product = ProductBuilder.BuildProduct();
            productRepository.Add(_product);
            productRepository.Persist();

        }
Exemple #11
0
        protected override void Before_all_specs()
        {
            SetupDatabase(ShopGunSpecBase.Database.ShopGun, typeof(Base).Assembly);

            RepositoryFactory = CreateStub <RepositoryFactory <IAdviceRepository, AdviceBase> >();

            _adviceApplicationService = new AdviceApplicationService(null, null);

            var mentorRepository = RepositoryFactory.Build <IRepository <Mentor>, Mentor>();

            _mentor = new Mentor
            {
                MentorName = "Consumentor"
            };
            mentorRepository.Add(_mentor);
            mentorRepository.Persist();


            var semaphoreRepository = RepositoryFactory.Build <IRepository <Semaphore>, Semaphore>();

            _redSemaphore = new Semaphore
            {
                ColorName = "Red",
                Value     = -1
            };
            semaphoreRepository.Add(_redSemaphore);
            _greenSemaphore = new Semaphore
            {
                ColorName = "Green",
                Value     = 1
            };
            semaphoreRepository.Add(_greenSemaphore);
            semaphoreRepository.Persist();


            var productRepository = RepositoryFactory.Build <IRepository <Product>, Product>();

            _product = ProductBuilder.BuildProduct();
            productRepository.Add(_product);
            productRepository.Persist();
        }