示例#1
0
 public HomeController(ICategory catsvc,IProduct prodsvc,ICart cartsvc, ICheckout checkoutsvc, ICommon commonsvc)
 {
     _categoryService = catsvc;
     _productService = prodsvc;
     _cartService = cartsvc;
     _checkoutService = checkoutsvc;
     _commonService = commonsvc;
 }
        public DebugLoggingCheckout(ICheckout checkout, ILogger logger)
        {
            if (checkout == null)
            {
                throw new ArgumentNullException("checkout");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.checkout = checkout;
            this.logger = logger;
        }
        public AccessControlCheckout(ICheckout checkout, IAccessControlPolicy policy)
        {
            if (checkout == null)
            {
                throw new ArgumentNullException("checkout");
            }

            if (policy == null)
            {
                throw new ArgumentNullException("policy");
            }

            this.checkout = checkout;
            this.policy = policy;
        }
示例#4
0
 public void SetUp()
 {
     _checkoutSolution = new CheckoutSolution();
 }
示例#5
0
 /// <summary>
 /// Constructor for a CheckoutController instance.
 /// </summary>
 /// <param name="productInventory">The <see cref="IProductRepository"/> that this checkout should consult for product details.</param>
 public CheckoutController(IProductRepository productInventory)
 {
     this.checkout = new Checkout(productInventory);
 }
示例#6
0
 /// <summary>
 /// Constructor method that brings in services to be used by the order Details page
 /// </summary>
 /// <param name="userManager">UserManager service from Identity Framework</param>
 /// <param name="context">Checkout interface</param>
 /// <param name="checkoutProduct">CheckoutProduct interface</param>
 public DetailsModel(UserManager <ApplicationUser> userManager, ICheckout context, ICheckoutProduct checkoutProduct)
 {
     _userManager     = userManager;
     _context         = context;
     _checkoutProduce = checkoutProduct;
 }
示例#7
0
 public void Setup()
 {
     //simple setup
     _checkout = new Checkout();
 }
示例#8
0
 public Discount(ICheckout checkout)
 {
     Checkout  = checkout;
     _products = Checkout.Products;
 }
示例#9
0
 public CatalogController(ILibraryAsset assets, ICheckout checkouts)
 {
     _assets    = assets;
     _checkouts = checkouts;
 }
示例#10
0
 public CatalogController(ILibraryAssetRepo repository, ICheckout checkout)
 {
     _repository = repository;
     _checkout   = checkout;
 }
 public CatalogController(ILibraryAsset assets, ICheckout checkouts) // inject _asset and _checkout into the constructor
 {
     _assets    = assets;
     _checkouts = checkouts;
 }
 public CatalogController(ILibraryAsset assets, ICheckout checkouts)
 {
     //Initialize services
     _assets    = assets;
     _checkouts = checkouts;
 }
示例#13
0
 public Scanner(ICheckout checkout)
 {
     _checkout = checkout ?? new Checkout();
 }
示例#14
0
 /// <summary>
 /// Constructor method that brings in services to be used by the order Details page
 /// </summary>
 /// <param name="userManager">UserManager service from Identity Framework</param>
 /// <param name="context">Checkout interface</param>
 public IndexModel(UserManager <ApplicationUser> userManager, ICheckout context)
 {
     _userManager = userManager;
     _context     = context;
 }
示例#15
0
 /// <summary>
 /// Constructor method that brings in services to be used by the Details page
 /// </summary>
 /// <param name="checkout">Checkout interface</param>
 /// <param name="checkoutProduct">CheckoutProduct interface</param>
 public DetailsModel(ICheckout checkout, ICheckoutProduct checkoutProduct)
 {
     _checkout        = checkout;
     _checkoutProduct = checkoutProduct;
 }
示例#16
0
 public HomeController(ICheckout checkoutService)
 {
     this._checkoutService = checkoutService;
 }
示例#17
0
 public CatalogController(ILibraryAsset assets, ICheckout checkouts)//injectam in constructor cele 2 interfete
 {
     _assets    = assets;
     _checkouts = checkouts;
 }
        private LibraryContext _context; //creating datacontext instance



        public CatalogController(ILibraryAsset assets, ICheckout checkouts, LibraryContext context)
        {
            _assets    = assets;
            _checkouts = checkouts;
            _context   = context;
        }
 public BooksController(IBook books, ICheckout checkouts)
 {
     _books     = books;
     _checkouts = checkouts;
 }
示例#20
0
 public Cashier(ICheckout checkout)
 {
     _checkout = checkout;
 }
示例#21
0
 // Constructor to enable us access IVehicleRentalAsset object
 public CatalogController(IVehicleRentalAsset assetsService, ICheckout checkoutService, IPatron patronService)
 {
     _assetsService   = assetsService;
     _checkoutService = checkoutService;
     _patronService   = patronService;
 }
 public CatalogController(ILibraryAsset LibraryAsset, ICheckout ICheckout, IPatron IPatron)
 {
     _ILibraryAsset = LibraryAsset;
     _ICheckout     = ICheckout;
     _IPatron       = IPatron;
 }
示例#23
0
 public CatalogController(ILibraryAssest asset, ICheckout checkout)
 {
     _assets    = asset;
     _checkouts = checkout;
 }
示例#24
0
 /// <summary>
 /// Constructor method that brings in services to be used by the Dashboard page
 /// </summary>
 /// <param name="checkout">Checkout interface</param>
 public DashboardModel(ICheckout checkout)
 {
     _checkout = checkout;
 }
 public CatalogController(ILibraryAsset assets, ICheckout checkout)
 {
     this.assets   = assets;
     this.checkout = checkout;
 }
示例#26
0
 public CatalogController(ILibraryAsset libraryAsset, ICheckout checkout)
 {
     this._assets   = libraryAsset;
     this._checkout = checkout;
 }