private void InitMachine(int feePercent) { _feesPercentToAdd = new FeePercentage(feePercent); ProductManager = new ProductManager(); RecipeManager = new RecipeManager(ProductManager.GetProductList(), _feesPercentToAdd); }
public Recipe(string recipeName, FeePercentage feesPercentToAdd) { if (string.IsNullOrWhiteSpace(recipeName)) { throw new Exception($"Recipe: recipeName cannot be null"); } _recipeIngredients = new List <Ingredient>(); RecipeName = recipeName; RecipeId = "recipe-" + Guid.NewGuid().ToString(); _feesPercentToAdd = feesPercentToAdd; }
public RecipeManager(Dictionary <string, Product> productList, FeePercentage Fee) { _percentFeesToAdd = Fee; _products = productList; }