public FormPutOnWarehouse(IWarehouseService serviceS, IIngredientService serviceC, IMainService serviceM)
 {
     InitializeComponent();
     this.serviceS = serviceS;
     this.serviceC = serviceC;
     this.serviceM = serviceM;
 }
 public IngredientsController(IMapper mapper, IIngredientService ingredientService,
                              IUnitOfWorkFactory unitOfWorkFactory)
 {
     _mapper            = mapper;
     _ingredientService = ingredientService;
     _unitOfWorkFactory = unitOfWorkFactory;
 }
Example #3
0
        public IngredientViewModel(INavigationService navService, IIngredientService ingredientService) : base(navService)
        {
            DelegateValidate   = new DelegateCommand(Validate, CanValidate).ObservesProperty(() => ingredientName).ObservesProperty(() => TypeName);
            _IngredientService = ingredientService;

            ListIngredientType = Enum.GetNames(typeof(IngredientType)).ToList();
        }
Example #4
0
 public IngredientsController(
     IIngredientService ingredientService,
     IValidator <UpdateIngredient> updateValidator)
 {
     _ingredientService = ingredientService;
     _updateValidator   = updateValidator;
 }
Example #5
0
 public CocktailsController(ICocktailService cocktailService, IUserService userService, IIngredientService ingredientService, IHostingEnvironment hostingEnvironment)
 {
     this.cocktailService    = cocktailService;
     this.userService        = userService;
     this.ingredientService  = ingredientService;
     this.hostingEnvironment = hostingEnvironment;
 }
Example #6
0
 public ManageController(
     IDishTypeService dishTypeService,
     IIngredientService ingredientService,
     IDishService dishService,
     IDrinkTypeService drinkTypeService,
     IPackagingService packagingService,
     IAllergenService allergenService,
     IWebHostEnvironment webHostEnvironment,
     IDrinkService drinkService,
     IUserService userService,
     IOrderService orderService,
     ITableService tableService,
     IPromoCodeService promoCodeService)
 {
     this.dishTypeService    = dishTypeService;
     this.ingredientService  = ingredientService;
     this.dishService        = dishService;
     this.drinkTypeService   = drinkTypeService;
     this.packagingService   = packagingService;
     this.allergenService    = allergenService;
     this.webHostEnvironment = webHostEnvironment;
     this.drinkService       = drinkService;
     this.userService        = userService;
     this.orderService       = orderService;
     this.tableService       = tableService;
     this.promoCodeService   = promoCodeService;
 }
Example #7
0
 public HomeController(IDishService dishService, IIngredientService ingredientService, IOrdersService orders, IDeliveryService delivery)
 {
     ordersService          = orders;
     deliveryService        = delivery;
     this.dishService       = dishService;
     this.ingredientService = ingredientService;
 }
Example #8
0
 public IngredientController(ILoggerManager logger, IIngredientService ingredientService, IMapper mapper)
 {
     _logger = logger;
     //_repository = repository;
     this.mapper            = mapper;
     this.ingredientService = ingredientService;
 }
 public CocktailController(ICocktailService cocktailService,
                           IBarService barService,
                           IIngredientService ingredientService,
                           IDTOMapper <CreateCocktailViewModel, CocktailDTO> createCocktailMapper,
                           IViewModelMapper <CocktailDTO, DisplayCocktailViewModel> displayCocktailMapper,
                           IViewModelMapper <CocktailDTO, CreateCocktailViewModel> createCocktailMapperToVM,
                           IViewModelMapper <CocktailDTO, CocktailViewModel> cocktailViewModelMapper,
                           IViewModelMapper <BarDTO, BarsForCocktailViewModel> barsForCocktailMapper,
                           IViewModelMapper <CocktailDTO, DeleteCocktailViewModel> deleteCocktailMapper,
                           IViewModelMapper <CommentDTO, CommentViewModel> commentMapper,
                           IViewModelMapper <ICollection <CocktailDTO>, CollectionViewModel> collectionMapper,
                           IViewModelMapper <IngredientDTO, CreateIngredientViewModel> ingredientMapper)
 {
     this.cocktailService          = cocktailService;
     this.barService               = barService;
     this.ingredientService        = ingredientService;
     this.createCocktailMapper     = createCocktailMapper;
     this.displayCocktailMapper    = displayCocktailMapper;
     this.createCocktailMapperToVM = createCocktailMapperToVM;
     this.cocktailViewModelMapper  = cocktailViewModelMapper;
     this.barsForCocktailMapper    = barsForCocktailMapper;
     this.deleteCocktailMapper     = deleteCocktailMapper;
     this.commentMapper            = commentMapper;
     this.collectionMapper         = collectionMapper;
     this.ingredientMapper         = ingredientMapper;
 }
Example #10
0
 public ProductService(IProductRepository productRepository, IMapper mapper, IIngredientService ingredientService, IAllergenService allergenService)
 {
     _allergernService  = allergenService;
     _ingredientService = ingredientService;
     _productRepository = productRepository;
     _mapper            = mapper;
 }
Example #11
0
 public IngredientsController(IAllergensService allergensService, IIngredientService ingredientService,
                              IImageService imageService)
 {
     this.allergensService  = allergensService;
     this.ingredientService = ingredientService;
     this.imageService      = imageService;
 }
Example #12
0
 public AddIngredientsModel(IRecipe_IngredientService db, IRecipeService recipeDb, IIngredientService ingredientDb, IUserService userDb)
 {
     _service           = db;
     _recipeService     = recipeDb;
     _ingredientService = ingredientDb;
     _userService       = userDb;
 }
 public IngredientQuantityController(IMapper autoMapper, IIngredientQuantityService ingredientQuantityService, IUserService userService, IIngredientService ingredientService)
     : base(autoMapper)
 {
     this.ingredientQuantityService = ingredientQuantityService;
     this.userService       = userService;
     this.ingredientService = ingredientService;
 }
 public RecipesController(
     IRecipeService recipeService,
     IIngredientService ingredientService,
     ITaskService tasksService,
     IStringLocalizer <RecipesController> localizer,
     IWebHostEnvironment webHostEnvironment,
     ICdnService cdnService,
     IUserService userService,
     ISenderService senderService,
     IValidator <CreateRecipe> createRecipeValidator,
     IValidator <UpdateRecipe> updateRecipeValidator,
     IValidator <ShareRecipe> shareValidator,
     IValidator <CreateSendRequest> createSendRequestValidator,
     IValidator <ImportRecipe> importRecipeValidator,
     IValidator <UploadTempImage> uploadTempImageValidator,
     IOptions <Urls> urls)
 {
     _recipeService              = recipeService;
     _ingredientService          = ingredientService;
     _tasksService               = tasksService;
     _localizer                  = localizer;
     _webHostEnvironment         = webHostEnvironment;
     _cdnService                 = cdnService;
     _userService                = userService;
     _senderService              = senderService;
     _createRecipeValidator      = createRecipeValidator;
     _updateRecipeValidator      = updateRecipeValidator;
     _shareValidator             = shareValidator;
     _createSendRequestValidator = createSendRequestValidator;
     _importRecipeValidator      = importRecipeValidator;
     _uploadTempImageValidator   = uploadTempImageValidator;
     _urls = urls.Value;
 }
Example #15
0
 public DishesController(IDishService dishService, IRestaurantService restaurantService, IIngredientService ingredientService, IRequestLogService requestLogService)
 {
     _dishService       = dishService;
     _restaurantService = restaurantService;
     _ingredientService = ingredientService;
     _requestLogService = requestLogService;
 }
Example #16
0
        public MainWindowViewModel(IDishService dishService, IIngredientService ingredientService)
        {
            _dishService       = dishService;
            _ingredientService = ingredientService;

            DishModels = new BindingList <DishModel>(_dishService.GetAvailableDishes().ToList());
        }
Example #17
0
 public PizzaController(IPizzaService _pizzaService, IIngredientService _ingredientService,
                        IItemTypeService _itemTypeService, ICustomizedIngredientService _customizedIngredientService)
 {
     pizzaService = _pizzaService;
     customizedIngredientService = _customizedIngredientService;
     itemTypeService             = _itemTypeService;
     ingredientService           = _ingredientService;
 }
        public IngredientController(IIngredientService service)
        {
            _service = service;

            _mapper = new Mapper(
                new MapperConfiguration(cfg
                                        => cfg.AddProfile <IngredientProfile>()));
        }
 public IngredientController(IGetIngredient getIngredient, ICreateIngredient createIngredient, IUpdateIngredient updateIngredient, IIngredientService ingredientService, IngredientEditModel ingredientEditModel)
 {
     this._createIngredient   = createIngredient;
     this._getIngredient      = getIngredient;
     this._ingredientService  = ingredientService;
     this._updateIngredient   = updateIngredient;
     this.IngredientEditModel = ingredientEditModel;
 }
 public IngredientController(IIngredientService ingredientService,
                             IViewModelMapper <IngredientDTO, CreateIngredientViewModel> ingredientToVMMapper,
                             IDTOMapper <CreateIngredientViewModel, IngredientDTO> ingredientMpper)
 {
     this.ingredientService    = ingredientService;
     this.ingredientToDTOMpper = ingredientMpper;
     this.ingredientToVMMapper = ingredientToVMMapper;
 }
Example #21
0
 public IngredientsController(IViewModelMapper <IngredientDto, IngredientViewModel> ingredientViewModelMapper,
                              IIngredientService ingredientService,
                              IToastNotification toastNotification)
 {
     this.ingredientViewModelMapper = ingredientViewModelMapper ?? throw new ArgumentException(nameof(ingredientViewModelMapper));
     this.ingredientService         = ingredientService ?? throw new ArgumentException(nameof(ingredientService));
     this.toastNotification         = toastNotification ?? throw new ArgumentException(nameof(toastNotification));
 }
 public IngredientServiceTests()
 {
     this.service = new IngredientService();
     service.Add(new Ingredient { Name = "Sugar" }
         );
     service.Add(new Ingredient { Name = "Milk" }
         );
 }
Example #23
0
 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 RecipeIngredientController(IRecipeService recipeService, IRecipeIngredientService recipeCategoryService, IIngredientService ingredientService, IMeasurementTypeService measurementTypeService, IPreparationTypeService preparationTypeService)
 {
     _recipeService           = recipeService;
     _ingredientService       = ingredientService;
     _recipeIngredientService = recipeCategoryService;
     _measurementTypeService  = measurementTypeService;
     _preparationTypeService  = preparationTypeService;
 }
 public RecipeMenu(IRecipeService recipeService,
                   IIngredientService ingredientService,
                   ILogger <RecipeMenu> logger)
 {
     _recipeService     = recipeService;
     _ingredientService = ingredientService;
     _logger            = logger;
 }
 public IngredientController(IIngredientService ingredientService, ICommonService iCommonService, IDropDownService idropDownService,
                             IStringLocalizer <RocketPOSResources> sharedLocalizer, LocService locService)
 {
     _iIngredientService = ingredientService; _iCommonService = iCommonService;
     _iDropDownService   = idropDownService;
     _sharedLocalizer    = sharedLocalizer;
     _locService         = locService;
 }
 public PizzaIngredientController(ILogger <PizzaIngredientController> logger, IMapper mapper, IPizzaIngredientService pizzaIngredientService, IPizzaService pizzaService, IIngredientService ingredientService)
 {
     this._logger = logger;
     this._mapper = mapper;
     this._pizzaIngredientService = pizzaIngredientService;
     this._pizzaService           = pizzaService;
     this._ingredientService      = ingredientService;
 }
 public void SetUp()
 {
     _ingredientService = A.Fake<IIngredientService>();
     _sut = new IngredientController(_ingredientService)
     {
         Request = new HttpRequestMessage(),
         Configuration = new HttpConfiguration()
     };
 }
Example #29
0
 public IngredientController(
     IIngredientService service,
     IIngredientMapper mapper,
     IRepositoryAdvanced <IngredientType> ingredientTypeRepository)
 {
     this.mapper  = mapper;
     this.service = service;
     this.ingredientTypeRepository = ingredientTypeRepository;
 }
 public IngredientsController(
     IOptions <PagingOptions> defaultPagingOptionsWrapper,
     UserManager <ApplicationUser> userManager,
     IIngredientService ingredientService)
 {
     defaultPagingOptions   = defaultPagingOptionsWrapper?.Value ?? new PagingOptions();
     this.userManager       = userManager;
     this.ingredientService = ingredientService;
 }
Example #31
0
 public RecipesController(IIngredientService ingredientService, ICookingTimeService cookingTimeService,
                          ICategoryService categoryService, IImageService imageService, IRecipeService recipeService)
 {
     this.ingredientService  = ingredientService;
     this.cookingTimeService = cookingTimeService;
     this.categoryService    = categoryService;
     this.imageService       = imageService;
     this.recipeService      = recipeService;
 }
Example #32
0
 public RecipesController(
     ICloudinaryService cloudinaryService,
     IIngredientService ingredientService,
     IRecipeService recipeService)
 {
     this.cloudinaryService = cloudinaryService;
     this.ingredientService = ingredientService;
     this.recipeService     = recipeService;
 }
 public IngredientsMvcController(IIngredientService ingredientService)
 {
     _ingredientService = ingredientService;
 }
 public IngredientController(IIngredientService ingredientServico)
 {
     _IngredientServico = ingredientServico;
     CriarMapeamentosDto();
 }
 public RecipeIngredientService(IIngredientService ingredientService, IRecipeIngredientDataProvider dataProvider)
 {
     IngredientService = ingredientService;
     DataProvider = dataProvider;
 }
Example #36
0
 public RecipeService(IIngredientService ingredientService, IRecipeDataProvider recipeDataProvider, IRecipeIngredientDataProvider recipeIngredientData)
 {
     IngredientService = ingredientService;
     RecipeDataProvider = recipeDataProvider;
     RecipeIngredientDataProvider = recipeIngredientData;
 }
 public PizzaController(IPizzaService pizzaServico, IIngredientService ingredienteServico)
 {
     _pizzaServico = pizzaServico;
     _ingredienteServico = ingredienteServico;
     CriarMapeamentosDto();
 }
 public AdministrationController(IAdminRepo adminRepo, IIngredientService ingredientService, IPizzaService pizzaService)
 {
     _adminRepo = adminRepo;
     _ingredientService = ingredientService;
     _pizzaService = pizzaService;
 }