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); }
public FermentablesController(IFermentableService fermentableService, ILogger <FermentablesController> logger) { _fermentableService = fermentableService; _logger = logger; }
public FermentableController(IFermentableService fermentableService) { _fermentableService = fermentableService; }