예제 #1
0
 public void TextFixtureSetup()
 {
     AutoMapperConfiguration.Configure();
    
     _hopElasticsearch = new HopElasticsearch();
     _hopRepository = new HopRepository();
    // _hopService = new BeerService(_beerElasticsearch,_hopElasticsearch,_userService,_breweryService);
 }
예제 #2
0
 public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch, IBeerStyleRepository beerStyleRespository,
                   IBeerStyleElasticsearch beerStyleElasticsearch)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository    = beerStyleRespository;
     _hopElasticsearch       = hopElasticsearch;
     _hopRepository          = hopRepository;
 }
예제 #3
0
        public void TextFixtureSetup()
        {
            AutoMapperConfiguration.Configure();

            _hopElasticsearch = new HopElasticsearch();
            _hopRepository    = new HopRepository();
            // _hopService = new BeerService(_beerElasticsearch,_hopElasticsearch,_userService,_breweryService);
        }
예제 #4
0
 public BeerStyleService(IBeerStyleElasticsearch beerStyleElasticsearch,
                         IBeerStyleRepository beerStyleRepository, IHopElasticsearch hopElasticsearch, IHopRepository hopRepository,
                         ILogger <BeerStyleService> logger)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository    = beerStyleRepository;
     _hopElasticsearch       = hopElasticsearch;
     _hopRepository          = hopRepository;
     _logger = logger;
 }
예제 #5
0
 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;
 }
예제 #8
0
 public HopService(IHopRepository hopRepository,IHopElasticsearch hopElasticsearch)
 {
     _hopRepository = hopRepository;
     _hopElasticsearch = hopElasticsearch;
 }
예제 #9
0
 public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch)
 {
     _hopRepository    = hopRepository;
     _hopElasticsearch = hopElasticsearch;
 }