Esempio n. 1
0
 public void SetModel(IShoppingCartModel model)
 {
     this.ShoppingCartModel = (IShoppingCartModel)model;
 }
 public ShoppingCartController()
 {
     IRepository<Album> repository = new DALFacade().AlbumRepository;
     this.cartModel = new ShoppingCartModel(repository);
 }
Esempio n. 3
0
 public ShoppingCartController(IShoppingCartModel shoppingCartModel, IProductModel productModel)
 {
     _shoppingCartModel = shoppingCartModel;
     _productModel      = productModel;
 }
 public ShoppingCartController()
 {
     IRepository<Movie> repository = new DALFacade().MovieRepository;
     this.cartModel = new ShoppingCartModel(repository);
 }