/// <summary>
 /// Test set up.
 /// </summary>
 public CartServiceTests()
 {
     _priceListService = new PriceListService();
     _cartService      = new CartService(_priceListService);
     _cartService.AddItem("A", 4);
     _cartService.AddItem("D", 3);
 }
 /// <summary>
 /// Test setup
 /// </summary>
 public NSkuPromotionServicesTests()
 {
     _priceListService = new PriceListService();
     _cartService      = new CartService(_priceListService);
     _cartService.AddItem("A", 4);
     _cartService.AddItem("D", 3);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Test set up
 /// </summary>
 public FixedPriceServiceTests()
 {
     _priceListService = new PriceListService();
     _cartService      = new CartService(_priceListService);
     _cartService.AddItem("A", 4);
     _cartService.AddItem("B", 1);
     _cartService.AddItem("C", 1);
     _cartService.AddItem("D", 4);
 }
Ejemplo n.º 4
0
 public PaymentsController(
     IUserService userService,
     IPriceListService priceListService,
     ITicketTypeService ticketTypeService,
     ITransactionService transactionAppService,
     ITicketService ticketService,
     IMerchant merchant
     )
 {
     paymentsService = new PaymentsService(
         transactionAppService, priceListService, ticketTypeService, ticketService, userService, merchant);
 }
Ejemplo n.º 5
0
 public HomeController(IAdminUsersService users,
                       RoleManager <IdentityRole> roleManager,
                       UserManager <User> userManager,
                       IHtmlSanitizerService html,
                       IPriceListService price)
 {
     this.html        = html;
     this.users       = users;
     this.roleManager = roleManager;
     this.userManager = userManager;
     this.price       = price;
 }
Ejemplo n.º 6
0
 public CcfBLL(IUnitOfWork uow)
 {
     _uow                    = uow;
     _ccfService             = new CcfService(uow);
     _docNumberService       = new DocumentNumberService(uow);
     _workflowService        = new WorkflowHistoryService(uow);
     _settingService         = new SettingService(uow);
     _reasonService          = new ReasonService(uow);
     _penaltyLogicService    = new PenaltyLogicService(uow);
     _pricelistService       = new PriceListService(uow);
     _fleetService           = new FleetService(uow);
     _messageService         = new MessageService(_uow);
     _employeeService        = new EmployeeService(_uow);
     _vendorService          = new VendorService(_uow);
     _complaintCategory      = new ComplainCategoryService(_uow);
     _locationMappingService = new LocationMappingService(_uow);
 }
Ejemplo n.º 7
0
        public PaymentsService(
            ITransactionService transactionAppService,
            IPriceListService priceListService,
            ITicketTypeService ticketTypeService,
            ITicketService ticketService,
            IUserService userService,
            IMerchant merchant
            )
        {
            this.userService           = userService;
            this.ticketService         = ticketService;
            this.userService           = userService;
            this.transactionAppService = transactionAppService;
            this.priceListService      = priceListService;
            this.ticketTypeService     = ticketTypeService;

            liqPayClient = new LiqPayClient(merchant.PublicKey, merchant.PrivateKey);
        }
Ejemplo n.º 8
0
        public TemporaryBLL(IUnitOfWork uow)
        {
            _uow = uow;
            _TemporaryService = new TemporaryService(_uow);

            _settingService         = new SettingService(_uow);
            _docNumberService       = new DocumentNumberService(_uow);
            _workflowService        = new WorkflowHistoryService(_uow);
            _messageService         = new MessageService(_uow);
            _employeeService        = new EmployeeService(_uow);
            _remarkService          = new RemarkService(_uow);
            _locationMappingService = new LocationMappingService(_uow);
            _fleetService           = new FleetService(_uow);
            _priceListService       = new PriceListService(_uow);
            _vendorService          = new VendorService(_uow);
            _groupCostService       = new GroupCostCenterService(_uow);
            _vehicleSpectService    = new VehicleSpectService(_uow);
        }
Ejemplo n.º 9
0
 public DepartmentViewModel(IMenuService menuService, IPriceListService priceListService, ICacheService cacheService)
 {
     _priceListService = priceListService;
     _cacheService     = cacheService;
 }
 public PriceListViewModel(IPriceListService priceListService)
 {
     _priceListService = priceListService;
     SaveCommand       = new CaptionCommand <string>(Resources.Save, OnSave);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// The constructor takes the price list as dependency to calculate the price.
 /// It initializes an empty cart.
 /// </summary>
 /// <param name="priceListService"></param>
 public CartService(IPriceListService priceListService)
 {
     _priceListService = priceListService;
     _cartItems        = new List <CartItem>();
 }
 public MenuItemPriceDefinitionListViewModel(IPriceListService priceListService)
 {
     _priceListService = priceListService;
 }
Ejemplo n.º 13
0
 public HomeController(IPriceListService price)
 {
     this.price = price;
 }
Ejemplo n.º 14
0
 public DepartmentViewModel(IMenuService menuService, IPriceListService priceListService)
 {
     _menuService      = menuService;
     _priceListService = priceListService;
 }
Ejemplo n.º 15
0
 public PriceListController(IPriceListService priceListService, IInvoiceService invoiceService)
 {
     _priceListService = priceListService;
     _invoiceService   = invoiceService;
 }
 public PriceListController(IPriceListService priceListService)
 {
     this._priceListService = priceListService;
 }
Ejemplo n.º 17
0
 public PriceListBLL(IUnitOfWork uow)
 {
     _uow = uow;
     _PriceListService = new PriceListService(uow);
 }
Ejemplo n.º 18
0
 public WcfOrderService(IOrderService orderService, IOrderStatusService statusService, IPriceListService priceListService)
 {
     _orderService     = orderService;
     _statusService    = statusService;
     _priceListService = priceListService;
 }
Ejemplo n.º 19
0
 public PriceListsController(IPriceListService priceListService, IAreaService areaService)
 {
     this.priceListService = priceListService;
     this.areaService      = areaService;
 }
Ejemplo n.º 20
0
 public PriceListController(IPriceListService pricelistService)
 {
     _pricelistService = pricelistService;
 }
 /// <summary>
 /// Price List service
 /// </summary>
 /// <param name="priceListService"></param>
 public void SetPriceList(IPriceListService priceListService)
 {
     _priceListService = priceListService;
 }
Ejemplo n.º 22
0
 public ShoppingCart(IPriceListService priceListService)
 {
     _priceListService = priceListService;
     _items = new List<CartItem>();
 }
Ejemplo n.º 23
0
 public PriceListViewModel(IPriceListService priceListService)
 {
     _priceListService = priceListService;
     SaveCommand = new CaptionCommand<string>(Resources.Save, OnSave);
 }
 public PartnerActionFilter(IStatusService statusService, ICallTarifService callTarifService, IPriceListService priceListService)
 {
     this._statusService = statusService;
     this._callTarifService = callTarifService;
     this._priceListService = priceListService;
 }