Ejemplo n.º 1
0
 public HomeController(FeatureSet featureSet, IDataContext dataContext, ICartRepository cartRepository, ICartPriceCalculator cartPriceCalculator)
 {
     _featureSet          = featureSet;
     _dataContext         = dataContext;
     _cartRepository      = cartRepository;
     _cartPriceCalculator = cartPriceCalculator;
 }
Ejemplo n.º 2
0
 public CartController(ICartRepository cartRepository, IDataContext dataContext, ICartPriceCalculator priceCalculator)
 {
     _cartRepository  = cartRepository;
     _dataContext     = dataContext;
     _priceCalculator = priceCalculator;
 }
 public void Init()
 {
     _cartEngine = MockTestData.InitializeCartEngine();
 }