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; }
public void SetUp() { _checkoutSolution = new CheckoutSolution(); }
/// <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); }
/// <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; }
public void Setup() { //simple setup _checkout = new Checkout(); }
public Discount(ICheckout checkout) { Checkout = checkout; _products = Checkout.Products; }
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; }
public Scanner(ICheckout checkout) { _checkout = checkout ?? new Checkout(); }
/// <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; }
/// <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; }
public HomeController(ICheckout checkoutService) { this._checkoutService = checkoutService; }
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; }
public Cashier(ICheckout checkout) { _checkout = checkout; }
// 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; }
public CatalogController(ILibraryAssest asset, ICheckout checkout) { _assets = asset; _checkouts = checkout; }
/// <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; }