public YeastPickerController(IFactory modelFactory, Business.Yeast.Queries.IFactory queryYeastFactory, Business.Recipe.Queries.IFactory queryRecipeFactory, IStringLocalizer <YeastPickerController> localizer) { _modelFactory = modelFactory; _queryYeastFactory = queryYeastFactory; _queryRecipeFactory = queryRecipeFactory; _localizer = localizer; }
public JournalController(IConfiguration configuration, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, Business.Journal.Commands.IFactory journalCommandFactory, Business.Journal.Queries.IFactory journalQueryFactory, Business.Yeast.Queries.IFactory yeastQueryFactory, Business.MaloCulture.Queries.IFactory maloCultureQueryFactory, Business.Recipe.Queries.IFactory recipeQueryFactory, IStringLocalizer <JournalController> localizer, Models.Journal.IFactory modelFactory, TelemetryClient telemetry) : base(configuration, userManager, roleManager, telemetry) { _localizer = localizer; _modelFactory = modelFactory; _journalQueryFactory = journalQueryFactory; _recipeQueryFactory = recipeQueryFactory; _yeastQueryFactory = yeastQueryFactory; _maloCultureQueryFactory = maloCultureQueryFactory; _journalCommandFactory = journalCommandFactory; }
public RecipesController(UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, IConfiguration configuration, IOptions <AppSettings> appSettings, Business.Recipe.Queries.IFactory queryFactory, Business.Recipe.Commands.IFactory commandsFactory, Business.Yeast.Queries.IFactory yeastQueryFactory, Business.Journal.Queries.IFactory journalQueryFactory, Business.Recipe.Dto.IFactory dtoFactory, Models.Recipes.IFactory modelFactory, IEmailAgent emailAgent, IStringLocalizer <RecipesController> localizer, TelemetryClient telemetry) : base(configuration, userManager, roleManager, telemetry) { _appSettings = appSettings?.Value; _localizer = localizer; _emailAgent = emailAgent; _modelFactory = modelFactory; _queryFactory = queryFactory; _commandsFactory = commandsFactory; _yeastQueryFactory = yeastQueryFactory; _journalQueryFactory = journalQueryFactory; _dtoFactory = dtoFactory; }
public AdminController(IConfiguration configuration, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, Business.Recipe.Queries.IFactory recipeQueryFactory, Business.Recipe.Commands.IFactory recipeCommandFactory, Business.Yeast.Queries.IFactory yeastQueryFactory, Business.Journal.Commands.IFactory journalCommandFactory, Business.Journal.Queries.IFactory journalQueryFactory, Business.Yeast.Commands.IFactory yeastCommandFactory, Business.MaloCulture.Commands.IFactory maloCommandFactory, Business.MaloCulture.Queries.IFactory maloQueryFactory, IMapper mapper, Models.Admin.IFactory modelFactory, IOptions <AppSettings> appSettings, IStringLocalizer <AdminController> localizer, TelemetryClient telemetry) : base(configuration, userManager, roleManager, telemetry) { _localizer = localizer; _modelFactory = modelFactory; _appSettings = appSettings?.Value; _mapper = mapper; _recipeQueryFactory = recipeQueryFactory; _recipeCommandFactory = recipeCommandFactory; _yeastQueryFactory = yeastQueryFactory; _yeastCommandFactory = yeastCommandFactory; _journalQueryFactory = journalQueryFactory; _journalCommandFactory = journalCommandFactory; _maloQueryFactory = maloQueryFactory; _maloCommandFactory = maloCommandFactory; }
public Factory(Business.Recipe.Queries.IFactory recipeQueryFactory, Business.Yeast.Queries.IFactory yeastQueryFactory, Business.MaloCulture.Queries.IFactory maloQueryFactory, Business.Journal.Queries.IFactory journalQueryFactory) { _recipeQueryFactory = recipeQueryFactory ?? throw new ArgumentNullException(nameof(recipeQueryFactory)); _yeastQueryFactory = yeastQueryFactory ?? throw new ArgumentNullException(nameof(yeastQueryFactory)); _journalQueryFactory = journalQueryFactory ?? throw new ArgumentNullException(nameof(journalQueryFactory)); _maloQueryFactory = maloQueryFactory ?? throw new ArgumentNullException(nameof(maloQueryFactory)); _getCategoriesQuery = _recipeQueryFactory.CreateCategoriesQuery(); _getVarietiesQuery = _recipeQueryFactory.CreateVarietiesQuery(); _getYeastsQuery = _yeastQueryFactory.CreateYeastsQuery(); _getYeastPairsQuery = _yeastQueryFactory.CreateYeastPairQuery(); _getYeastBrandsQuery = _yeastQueryFactory.CreateBrandsQuery(); _getYeastStylesQuery = _yeastQueryFactory.CreateStylesQuery(); _getMaloQuery = _maloQueryFactory.CreateMaloCulturesQuery(); _getMaloBrandsQuery = _maloQueryFactory.CreateBrandsQuery(); _getMaloStylesQuery = _maloQueryFactory.CreateStylesQuery(); _getSugarUOMQuery = _journalQueryFactory.CreateBatchSugarUOMQuery(); _getTempUOMQuery = _journalQueryFactory.CreateBatchTempUOMQuery(); _getVolumeUOMQuery = _journalQueryFactory.CreateBatchVolumeUOMQuery(); _categoriesDtoList = _getCategoriesQuery.Execute(); _varietiesDtoList = _getVarietiesQuery.Execute(); _yeastsDtoList = _getYeastsQuery.Execute(); _yeastPairingsDtoList = _getYeastPairsQuery.Execute(); _yeastBrandsDtoList = _getYeastBrandsQuery.Execute(); _yeastStylesDtoList = _getMaloStylesQuery.Execute(); _maloDtoList = _getMaloQuery.Execute(); _maloBrandsDtoList = _getMaloBrandsQuery.Execute(); _maloStylesDtoList = _getYeastStylesQuery.Execute(); _getSugarUomList = _getSugarUOMQuery.Execute(); _getTempUomList = _getTempUOMQuery.Execute(); _getVolumeUomList = _getVolumeUOMQuery.Execute(); }
public YeastsController(IFactory modelFactory, Business.Yeast.Queries.IFactory queryFactory) { _modelFactory = modelFactory; _queryFactory = queryFactory; }