Example #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;
        }
Example #4
0
 public void SetUp()
 {
     _checkoutSolution = new CheckoutSolution();
 }
Example #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);
 }
Example #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;
 }
Example #7
0
 public void Setup()
 {
     //simple setup
     _checkout = new Checkout();
 }
Example #8
0
 public Discount(ICheckout checkout)
 {
     Checkout  = checkout;
     _products = Checkout.Products;
 }
Example #9
0
 public CatalogController(ILibraryAsset assets, ICheckout checkouts)
 {
     _assets    = assets;
     _checkouts = checkouts;
 }
 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;
 }
Example #13
0
 public Scanner(ICheckout checkout)
 {
     _checkout = checkout ?? new Checkout();
 }
Example #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;
 }
Example #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;
 }
Example #16
0
 public HomeController(ICheckout checkoutService)
 {
     this._checkoutService = checkoutService;
 }
Example #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;
 }
Example #20
0
 public Cashier(ICheckout checkout)
 {
     _checkout = checkout;
 }
Example #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;
 }
Example #23
0
 public CatalogController(ILibraryAssest asset, ICheckout checkout)
 {
     _assets    = asset;
     _checkouts = checkout;
 }
Example #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;
 }
 public CatalogController(ILibraryAsset libraryAsset, ICheckout checkout)
 {
     this._assets   = libraryAsset;
     this._checkout = checkout;
 }