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);
 }
Beispiel #2
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);
 }
Beispiel #3
0
 public OriginService(IOriginElasticsearch originElasticsearch, IOriginRespository originRespository)
 {
     _originElasticsearch = originElasticsearch;
     _originRespository   = originRespository;
 }
Beispiel #4
0
 public void TestFixureSetUp()
 {
     _originRespository = new OriginDapperRepository();
 }
 public void TestFixureSetUp()
 {
     _originRespository = new OriginDapperRepository();
 }
 public OriginService(IOriginElasticsearch originElasticsearch, IOriginRespository originRespository)
 {
     _originElasticsearch = originElasticsearch;
     _originRespository = originRespository;
 }