public void TextFixtureSetup() { AutoMapperConfiguration.Configure(); _hopElasticsearch = new HopElasticsearch(); _hopRepository = new HopRepository(); // _hopService = new BeerService(_beerElasticsearch,_hopElasticsearch,_userService,_breweryService); }
public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch, IBeerStyleRepository beerStyleRespository, IBeerStyleElasticsearch beerStyleElasticsearch) { _beerStyleElasticsearch = beerStyleElasticsearch; _beerStyleRepository = beerStyleRespository; _hopElasticsearch = hopElasticsearch; _hopRepository = hopRepository; }
public BeerStyleService(IBeerStyleElasticsearch beerStyleElasticsearch, IBeerStyleRepository beerStyleRepository, IHopElasticsearch hopElasticsearch, IHopRepository hopRepository, ILogger <BeerStyleService> logger) { _beerStyleElasticsearch = beerStyleElasticsearch; _beerStyleRepository = beerStyleRepository; _hopElasticsearch = hopElasticsearch; _hopRepository = hopRepository; _logger = logger; }
public void Init() { TestUtil.FlushRedisStore(); TestUtil.DeleteDataInDatabase(); TestUtil.InsertDataDatabase(); AutoMapperConfiguration.Configure(); _context = new MicrobrewitContext(); _repository = new HopRepository(); _elasticsearch = new HopElasticsearch(); _service = new HopService(_repository, _elasticsearch); _controller = new HopController(_service); }
public void Init() { TestUtil.FlushRedisStore(); TestUtil.DeleteDataInDatabase(); TestUtil.InsertDataDatabase(); AutoMapperConfiguration.Configure(); _context = new MicrobrewitContext(); _repository = new HopRepository(); _elasticsearch = new HopElasticsearch(); _service = new HopService(_repository,_elasticsearch); _controller = new HopController(_service); }
public BeerXmlResolver(IOptions <DatabaseSettings> databaseSettings, IOptions <ElasticSearchSettings> elasticSearchSettings, IFermentableElasticsearch fermentableElasticsearch, IHopElasticsearch hopElasticsearch, IHopRepository hopRepository, IOtherElasticsearch otherElasticsearch, IYeastElasticsearch yeastElasticsearch, IOtherRepository otherRepository, IOtherService otherService) { _databaseSettings = databaseSettings; _elasticSearchSettings = elasticSearchSettings; _fermentableElasticsearch = fermentableElasticsearch; _hopElasticsearch = hopElasticsearch; _hopRepository = hopRepository; _otherElasticsearch = otherElasticsearch; _yeastElasticsearch = yeastElasticsearch; _otherRepository = otherRepository; _otherService = otherService; }
public HopService(IHopRepository hopRepository,IHopElasticsearch hopElasticsearch) { _hopRepository = hopRepository; _hopElasticsearch = hopElasticsearch; }
public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch) { _hopRepository = hopRepository; _hopElasticsearch = hopElasticsearch; }