Beispiel #1
0
 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;
 }
Beispiel #2
0
 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 RecipesController(WMSContext dbContext, Business.Recipe.Queries.IFactory queryFactory, Business.Recipe.Commands.IFactory commandsFactory)
 {
     _recipeContext   = dbContext;
     _queryFactory    = queryFactory;
     _commandsFactory = commandsFactory;
 }