private CosmeticsEngine()
 {
     this.factory = new CosmeticsFactory();
     this.shoppingCart = new ShoppingCart();
     this.categories = new Dictionary<string, ICategory>();
     this.products = new Dictionary<string, IProduct>();
 }
 private CosmeticsEngine()
 {
     this.factory      = new CosmeticsFactory();
     this.shoppingCart = new ShoppingCart();
     this.categories   = new Dictionary <string, ICategory>();
     this.products     = new Dictionary <string, IProduct>();
 }
        public void SetValidParameters()
        {
            this.factory = new CosmeticsFactory();

            this.validProductName = "Shampoo";
            this.validBrand       = "Nivea";
            this.validPrice       = 4.99m;
            this.validGenderType  = GenderType.Men;
        }
예제 #4
0
 public CosmeticsEngine(
     ICosmeticsFactory factory,
     IShoppingCart shopCart)
 {
     this.factory      = factory;
     this.shoppingCart = shopCart;
     this.categories   = new Dictionary <string, ICategory>();
     this.products     = new Dictionary <string, IProduct>();
 }
예제 #5
0
 public CosmeticsEngine(
     ICosmeticsFactory factory,
     IShoppingCart shoppingCart,
     ICommandParser commandParser)
 {
     this.factory = factory;
     this.shoppingCart = shoppingCart;
     this.commandParser = commandParser;
     this.categories = new Dictionary<string, ICategory>();
     this.products = new Dictionary<string, IProduct>();
 }
예제 #6
0
        public CosmeticsEngine
        (
            ICosmeticsFactory fact,
            IShoppingCart cart,

            IDictionary <string, ICategory> categ,
            IDictionary <string, IProduct> products
        )
        {
            this.factory      = fact;
            this.shoppingCart = cart;
            this.categories   = categ;    //categ;
            this.products     = products; //products;
        }
예제 #7
0
        public CosmeticsEngine(
            ICosmeticsFactory factory,
            IShoppingCart shoppingCart,
            ICommandParser commandParser,
            IWriter writer)
        {
            this.factory       = factory;
            this.shoppingCart  = shoppingCart;
            this.commandParser = commandParser;
            this.writer        = writer;

            this.categories = new Dictionary <string, ICategory>();
            this.products   = new Dictionary <string, IProduct>();
        }
 public CreateShampoo(IDataStore dataStore, ICosmeticsFactory factory)
 {
     this.dataStore = dataStore;
     this.factory   = factory;
 }
예제 #9
0
 public MockedCosmeticsEngine(ICosmeticsFactory factory, IShoppingCart shoppingCart, ICommandParser commandParser)
     : base(factory, shoppingCart, commandParser)
 {
 }
예제 #10
0
 public CosmeticsEngineExtended(ICosmeticsFactory factory, IShoppingCart shoppingCart, ICommandParser commandParser) : base(factory, shoppingCart, commandParser)
 {
 }
예제 #11
0
 public CosmeticsEngineExtended(ICosmeticsFactory factory, IShoppingCart shoppingCart) : base(factory, shoppingCart)
 {
 }
예제 #12
0
 public MockedCosmeticsEngine(ICosmeticsFactory factory, IShoppingCart shoppingCart, ICommandParser commandParser)
     : base(factory, shoppingCart, commandParser)
 {
 }
 public void Init()
 {
     this._factory = new CosmeticsFactory();
 }
 public CreateToothpaste(IDataStore dataStore, ICosmeticsFactory factory)
 {
     this.dataStore = dataStore;
     this.factory   = factory;
 }
 public MockedCosmeticsEngine(ICosmeticsFactory factory, IShoppingCart shopCart)
     : base(factory, shopCart)
 {
 }
 public RemoveFromCategory(ICosmeticsFactory factory, IDataStore dataStore)
 {
     this.dataStore = dataStore;
 }
 public CreateCategory(ICosmeticsFactory factory, IDataStore dataStore)
 {
     this.factory   = factory;
     this.dataStore = dataStore;
 }