Ejemplo n.º 1
0
 public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _originElasticsearch = new OriginElasticsearch();
     _context             = new MicrobrewitContext();
     _repository          = new OriginRepository();
     _originService       = new OriginService(_originElasticsearch, _repository);
     _controller          = new OriginController(_originService);
 }
 public void Init()
 {
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _originElasticsearch = new OriginElasticsearch();
     _context = new MicrobrewitContext();
     _repository = new OriginRepository();
     _originService = new OriginService(_originElasticsearch,_repository);
     _controller = new OriginController(_originService);
 }
Ejemplo n.º 3
0
 public OriginService(IOriginElasticsearch originElasticsearch, IOriginRespository originRespository)
 {
     _originElasticsearch = originElasticsearch;
     _originRespository   = originRespository;
 }
Ejemplo n.º 4
0
 public OriginService(IOriginElasticsearch originElasticsearch, IOriginRespository originRespository)
 {
     _originElasticsearch = originElasticsearch;
     _originRespository = originRespository;
 }