Example #1
0
 public IngredientService(IHopService hopService, IFermentableService fermentableService,
                          IOtherService otherService, IYeastService yeastService, IIngredientElasticsearch ingredientElasticsearch)
 {
     _hopService              = hopService;
     _fermentableService      = fermentableService;
     _otherService            = otherService;
     _yeastService            = yeastService;
     _ingredientElasticsearch = ingredientElasticsearch;
 }
 public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _fermentableElasticsearch = new FermentableElasticsearch();
     _context            = new MicrobrewitContext();
     _repository         = new FermentableRepository();
     _fermentableService = new FermentableService(_repository, _fermentableElasticsearch);
     _controller         = new FermentableController(_fermentableService);
 }
 public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _fermentableElasticsearch = new FermentableElasticsearch();
     _context = new MicrobrewitContext();
     _repository = new FermentableRepository();
     _fermentableService = new FermentableService(_repository,_fermentableElasticsearch);
     _controller = new FermentableController(_fermentableService);
 }
Example #4
0
 public FermentablesController(IFermentableService fermentableService, ILogger <FermentablesController> logger)
 {
     _fermentableService = fermentableService;
     _logger             = logger;
 }
Example #5
0
 public FermentableController(IFermentableService fermentableService)
 {
     _fermentableService = fermentableService;
 }
 public FermentableController(IFermentableService fermentableService)
 {
     _fermentableService = fermentableService;
 }