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; }
public CosmeticsEngine( ICosmeticsFactory factory, IShoppingCart shopCart) { this.factory = factory; this.shoppingCart = shopCart; this.categories = new Dictionary <string, ICategory>(); this.products = new Dictionary <string, IProduct>(); }
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>(); }
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; }
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; }
public MockedCosmeticsEngine(ICosmeticsFactory factory, IShoppingCart shoppingCart, ICommandParser commandParser) : base(factory, shoppingCart, commandParser) { }
public CosmeticsEngineExtended(ICosmeticsFactory factory, IShoppingCart shoppingCart, ICommandParser commandParser) : base(factory, shoppingCart, commandParser) { }
public CosmeticsEngineExtended(ICosmeticsFactory factory, IShoppingCart shoppingCart) : base(factory, shoppingCart) { }
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; }