示例#1
0
 public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch, IBeerStyleRepository beerStyleRespository,
                   IBeerStyleElasticsearch beerStyleElasticsearch)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository    = beerStyleRespository;
     _hopElasticsearch       = hopElasticsearch;
     _hopRepository          = hopRepository;
 }
示例#2
0
 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.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _context = new MicrobrewitContext();
     _beerStyleElasticsearch = new BeerStyleElasticsearch();
     _repository             = new BeerStyleRepository();
     _beerStyleService       = new BeerStyleService(_beerStyleElasticsearch, _repository);
     _controller             = new BeerStyleController(_beerStyleService);
 }
 public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _context = new MicrobrewitContext();
     _beerStyleElasticsearch = new BeerStyleElasticsearch();
     _repository = new BeerStyleRepository();
     _beerStyleService = new BeerStyleService(_beerStyleElasticsearch,_repository);
     _controller = new BeerStyleController(_beerStyleService);
 }
 public BeerStyleService(IBeerStyleElasticsearch beerStyleElasticsearch, IBeerStyleRepository beerStyleRepository)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository = beerStyleRepository;
 }
示例#6
0
 public void TestFixureSetUp()
 {
     _beerStyleRepository = new BeerStyleDapperRepository();
 }
 public BeerStyleService(IBeerStyleElasticsearch beerStyleElasticsearch, IBeerStyleRepository beerStyleRepository)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository    = beerStyleRepository;
 }
 public void TestFixureSetUp()
 {
     _beerStyleRepository = new BeerStyleDapperRepository();
 }