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