Esempio n. 1
0
 public OrderController(IOrderService orderService, IShippingService shippingService, IPayPalService payPalService, Fashinon dbContext)
 {
     this.orderService = orderService;
     this.shippingService = shippingService;
     this.payPalService = payPalService;
     this.dbContext = dbContext;
 }
Esempio n. 2
0
        public Customer GetAnonymousCustomer()
        {
            var context = new Fashinon();
            var customer = new Customer();

            customer.FirstName = "Anonymous";
            customer.LastName = "Anonymous";

            context.Customers.Add(customer);
            context.SaveChanges();

            return customer;
        }
Esempio n. 3
0
 public PayPalController(
     ILogService logService, 
     IBasketService basketService, 
     IPayPalService payPalService, 
     IShippingService shippingService,
     IOrderService orderService,
     ICustomerService customerService,
     Fashinon dbContext)
 {
     this.logService = logService;
     this.basketService = basketService;
     this.payPalService = payPalService;
     this.shippingService = shippingService;
     this.orderService = orderService;
     this.customerService = customerService;
     this.dbContext = dbContext;
 }
Esempio n. 4
0
 public BasketService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 5
0
 public ProductService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 6
0
 public OrderService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 7
0
 public ShippingService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 8
0
 public CustomerService(Fashinon dbContext)
 {
     this.dbContext = dbContext;
 }