public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _repository         = new OtherRepository();
     _context            = new MicrobrewitContext();
     _otherElasticsearch = new OtherElasticsearch();
     _service            = new OtherService(_otherElasticsearch, _repository);
     _controller         = new OtherController(_service);
 }
        public void Init()
        {
            TestUtil.DeleteDataInDatabase();
            TestUtil.InsertDataDatabase();
            AutoMapperConfiguration.Configure();
            _repository = new OtherRepository();
            _context = new MicrobrewitContext();
            _otherElasticsearch = new OtherElasticsearch();
            _service = new OtherService(_otherElasticsearch,_repository);
            _controller = new OtherController(_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;
 }
Exemplo n.º 4
0
 public OtherService(IOtherElasticsearch otherElasticsearch, IOtherRepository otherRepository)
 {
     _otherElasticsearch = otherElasticsearch;
     _otherRepository    = otherRepository;
 }
Exemplo n.º 5
0
 public OtherService(IOtherElasticsearch otherElasticsearch, IOtherRepository otherRepository)
 {
     _otherElasticsearch = otherElasticsearch;
     _otherRepository = otherRepository;
 }