public CocktailService(CocktailMagicianContext context, IDtoMapper <Cocktail, CocktailDto> cocktailDtoMapper, IDateTimeProvider provider, ICocktailIngredientService cocktailIngredientService, IIngredientService ingredientService) { this._context = context ?? throw new ArgumentNullException(nameof(context)); this._cocktailDtoMapper = cocktailDtoMapper ?? throw new ArgumentNullException(nameof(cocktailDtoMapper)); this._provider = provider ?? throw new ArgumentNullException(nameof(provider)); this._cocktailIngredientService = cocktailIngredientService ?? throw new ArgumentNullException(nameof(cocktailIngredientService)); this._ingredientService = ingredientService ?? throw new ArgumentNullException(nameof(ingredientService)); }
public AddIngredientToCocktailController(CocktailMagicianContext context, ICocktailService cocktailService, IIngredientService ingredientService, IViewModelMapper <IngredientDto, IngredientViewModel> ingredientVmMapper, ICocktailIngredientService cocktailIngredientService) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.cocktailService = cocktailService ?? throw new ArgumentNullException(nameof(cocktailService)); this._ingredientService = ingredientService ?? throw new ArgumentNullException(nameof(ingredientService)); this._ingredientVmMapper = ingredientVmMapper ?? throw new ArgumentNullException(nameof(ingredientVmMapper)); this._cocktailIngredientService = cocktailIngredientService ?? throw new ArgumentNullException(nameof(cocktailIngredientService)); }
public CocktailService(CWContext context, IDtoMapper <Cocktail, CocktailDto> dtoMapper, IDtoMapper <Bar, BarDto> barDtoMapper, IDtoMapper <Cocktail, DetailsCocktailDto> detailsCocktailDtoMapper, IIngredientService ingredientService, ICocktailIngredientService cocktailIngredientService) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.dtoMapper = dtoMapper ?? throw new ArgumentNullException(nameof(dtoMapper)); this.barDtoMapper = barDtoMapper ?? throw new ArgumentNullException(nameof(barDtoMapper)); this.detailsCocktailDtoMapper = detailsCocktailDtoMapper ?? throw new ArgumentNullException(nameof(barDtoMapper)); this.ingredientService = ingredientService ?? throw new ArgumentNullException(nameof(ingredientService)); this.cocktailIngredientService = cocktailIngredientService ?? throw new ArgumentNullException(nameof(cocktailIngredientService)); }
public CocktailService(IriOnCocktailServiceDbContext context, ICocktailIngredientService cocktailIngredientService, IDTOServiceMapper <Cocktail, CocktailDTO> mapper, IDTOServiceMapper <CocktailDTO, Cocktail> cocktailMapper, IDTOServiceMapper <CommentDTO, CocktailComment> cocktailCommentMapper, IDTOServiceMapper <CocktailComment, CommentDTO> cocktailCommentDTOMapper, IDTOServiceMapper <Cocktail, AddCocktailDTO> addCocktailMapper, IDTOServiceMapper <RatingDTO, CocktailRating> cocktailRatingMapper) { this.context = context; this.cocktailIngredientService = cocktailIngredientService; this.mapper = mapper; this.cocktailMapper = cocktailMapper; this.cocktailCommentMapper = cocktailCommentMapper; this.cocktailCommentDTOMapper = cocktailCommentDTOMapper; this.addCocktailMapper = addCocktailMapper; this.cocktailRatingMapper = cocktailRatingMapper; }