public Suggestion(IRecipeFactory recipeFactory, IIngredientFactory ingredientFactory) { this.recipeFactory = recipeFactory ?? throw new System.ArgumentNullException(nameof(recipeFactory)); this.ingredientFactory = ingredientFactory ?? throw new System.ArgumentNullException(nameof(ingredientFactory)); }
public CreateRecipeCommandHandler( IRecipeRepository recipeRepository, IRecipeFactory recipeFactory) { RecipeRepository = recipeRepository; RecipeFactory = recipeFactory; }
private RestaurantManagerEngine() { this.restaurantFactory = new RestaurantFactory(); this.recipeFactory = new RecipeFactory(); this.restaurants = new Dictionary<string, IRestaurant>(); this.recipes = new Dictionary<string, IRecipe>(); this.userInterface = new ConsoleInterface(); }
private RestaurantManagerEngine() { this.restaurantFactory = new RestaurantFactory(); this.recipeFactory = new RecipeFactory(); this.restaurants = new Dictionary <string, IRestaurant>(); this.recipes = new Dictionary <string, IRecipe>(); this.userInterface = new ConsoleInterface(); }
public HeroManager(IHeroFactory heroFactory, IItemFactory itemFactory, IRecipeFactory recipeFactory) { this.heroFactory = heroFactory; this.itemFactory = itemFactory; this.recipeFactory = recipeFactory; this.heroes = new Dictionary <string, IHero>(); }
public CommandInterpreter( IHeroRepository heroRepository, IHeroFactory heroFactory, IItemFactory itemFactory, IRecipeFactory recipeFactory) { this.heroRepository = heroRepository; this.heroFactory = heroFactory; this.itemFactory = itemFactory; this.recipeFactory = recipeFactory; }
public CreateRecipeCommandHandler( IEnumerable <ICommandValidator <CreateRecipeCommand> > validators, IEventPublisher eventPublisher, IRecipeFactory recipeFactory, IRecipeIngredientFactory recipeIngredientFactory, IImageUploader imageUploader) { _validators = validators; _eventPublisher = eventPublisher; _recipeFactory = recipeFactory; _recipeIngredientFactory = recipeIngredientFactory; _imageUploader = imageUploader; }
public Engine( IInputReader reader, IOutputWriter writer, IManager manager, IHeroFactory heroFactory, ICommonItemFactory commonItemFactory, IRecipeFactory recipeFactory) { this.reader = reader; this.writer = writer; this.heroManager = manager; this.heroFactory = heroFactory; this.commonItemFactory = commonItemFactory; this.recipeFactory = recipeFactory; }