示例#1
0
 public ReservationBuilder(IPromoCodeService promoCodeService, IGuestService guestService, IRoomGateway roomGateway)
 {
     _promoCodeService     = promoCodeService;
     _guestService         = guestService;
     _roomGateway          = roomGateway;
     _reservationValidator = InitValidator();
 }
示例#2
0
 public ManageController(
     IDishTypeService dishTypeService,
     IIngredientService ingredientService,
     IDishService dishService,
     IDrinkTypeService drinkTypeService,
     IPackagingService packagingService,
     IAllergenService allergenService,
     IWebHostEnvironment webHostEnvironment,
     IDrinkService drinkService,
     IUserService userService,
     IOrderService orderService,
     ITableService tableService,
     IPromoCodeService promoCodeService)
 {
     this.dishTypeService    = dishTypeService;
     this.ingredientService  = ingredientService;
     this.dishService        = dishService;
     this.drinkTypeService   = drinkTypeService;
     this.packagingService   = packagingService;
     this.allergenService    = allergenService;
     this.webHostEnvironment = webHostEnvironment;
     this.drinkService       = drinkService;
     this.userService        = userService;
     this.orderService       = orderService;
     this.tableService       = tableService;
     this.promoCodeService   = promoCodeService;
 }
 public ManageController(IPromoCodeService promoCodeService, ICookieCartService cookieCartService, ICartService cartService, IProductInCartService productInCartService, IUserDetailsService userDetailsService)
 {
     PromoCodeService      = promoCodeService;
     CookieCartService     = cookieCartService;
     CartService           = cartService;
     ProductsInCartService = productInCartService;
     UserDetailsService    = userDetailsService;
 }
        public PromoCodeController(IPromoCodeService PromoCodeService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _PromoCodeService = PromoCodeService;
            _unitOfWork       = unitOfWork;
            _exception        = exec;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
示例#5
0
 public OrdersController(
     UserManager <ApplicationUser> userManager,
     IOrderService orderService,
     IShoppingCartService shoppingCartService,
     IPromoCodeService promoCodeService,
     IShoppingCartProductsService shoppingCartProductsService)
 {
     this.userManager                 = userManager;
     this.orderService                = orderService;
     this.shoppingCartService         = shoppingCartService;
     this.promoCodeService            = promoCodeService;
     this.shoppingCartProductsService = shoppingCartProductsService;
 }
示例#6
0
 public BasketService(
     IDeletableEntityRepository <Basket> basketRepository,
     IUserService userService,
     IRepository <BasketDrink> basketDrinkRepository,
     IRepository <BasketDish> basketDishRepository,
     IPromoCodeService promoCodeService)
 {
     this.basketRepository      = basketRepository;
     this.userService           = userService;
     this.basketDrinkRepository = basketDrinkRepository;
     this.basketDishRepository  = basketDishRepository;
     this.promoCodeService      = promoCodeService;
 }
 public CatalogueController(ICartService cartService, IPromoCodeService promoCodeService, ICookieCartService cookieCartService, IUserDetailsService userDetailsService, IOrderService orderService, IApplicationUserService userService, IProductInCartService productsInCartService, IProductCategoryService categoryService, IProductService productService, IPromoService promosService)
 {
     this.CookieCartService     = cookieCartService;
     this.CartService           = cartService;
     this.PromoCodeService      = promoCodeService;
     this.CategoryService       = categoryService;
     this.UserDetailsService    = userDetailsService;
     this.OrderService          = orderService;
     this.ProductService        = productService;
     this.PromosService         = promosService;
     this.UserService           = userService;
     this.ProductsInCartService = productsInCartService;
 }
示例#8
0
 public OrderService(
     IDeletableEntityRepository <Order> orderRepository,
     IUserService userService,
     IShoppingCartProductsService shoppingCartProductsService,
     IOrderProductsService orderProductsService,
     IPromoCodeService promoCodeService)
 {
     this.orderRepository             = orderRepository;
     this.userService                 = userService;
     this.shoppingCartProductsService = shoppingCartProductsService;
     this.orderProductsService        = orderProductsService;
     this.promoCodeService            = promoCodeService;
 }
示例#9
0
        public ReservationCreationController(IReservationService reservationService, IGuestService guestService, IPromoCodeService promoCodeService,
                                             IRoomGateway roomGateway, IReservationDirector reservationDirector)
        {
            // Mod 1 Team 4 Services
            _reservationService  = reservationService;
            _promoCodeService    = promoCodeService;
            _reservationDirector = reservationDirector;

            // Calling Mod 1 Team 9 Service - for guest details
            _guestService = guestService;

            // Calling Mod 1 Team 6 Room Service - for room instance
            _roomGateway = roomGateway;
        }
示例#10
0
 public OrderService(
     IDeletableEntityRepository <Order> orderRepository,
     IBasketService basketService,
     ITableService tableService,
     IDishTypeService dishTypeService,
     IPromoCodeService promoCodeService,
     IOrderDishService orderDishService,
     IOrderDrinkService orderDrinkService
     )
 {
     this.orderRepository   = orderRepository;
     this.basketService     = basketService;
     this.tableService      = tableService;
     this.dishTypeService   = dishTypeService;
     this.promoCodeService  = promoCodeService;
     this.orderDishService  = orderDishService;
     this.orderDrinkService = orderDrinkService;
 }
        public ReservationManagementController(IReservationService reservationService,
                                               IPromoCodeService promoCodeService,
                                               IGuestService guestService, IRoomGateway roomGateway, iReservationInvoice iReservationInvoice,
                                               IAuthenticate authenticate)
        {
            _reservationService = reservationService;
            _promoCodeService   = promoCodeService;

            // Calling Mod 1 Team 9 Service - for guest details
            _guestService = guestService;

            // Call Mod 1 Team 6 Room Service - for room instance
            _roomGateway = roomGateway;

            // Calling Mod 1 Team 6 Authentication Service - for authentication of secret pin
            _authenticate = authenticate;

            // Call Mod 2 Team 7 ReservationInvoice Service - for payment of cancellation
            _iReservationInvoice = iReservationInvoice;

            // Validator has to init last
            _reservationValidator = new ReservationValidator(_promoCodeService, _guestService, _roomGateway);
        }
 public PromoCodesController(IPromoCodeService promoCodeService)
 {
     this.promoCodeService = promoCodeService;
 }
示例#13
0
 public OrderBuilderService(IDiscountService discountService, IPromoCodeService promoCodeService)
 {
     _discountService  = discountService;
     _promoCodeService = promoCodeService;
 }
示例#14
0
 public PromoCodeCreatedEventConsumer(IPromoCodeService promoCodeService)
 {
     _promoCodeService = promoCodeService;
 }
示例#15
0
 public PromoCodeController(IPromoCodeService promoCodeService, IMapper mapper)
 {
     _promoCodeService = promoCodeService;
     _mapper           = mapper;
 }
 public PromoCodeController(IPromoCodeService promoCodeService)
 {
     _promoCodeService = promoCodeService;
 }