public UserService(IUserElasticsearch userElasticsearch, IUserRepository userRepository, IBreweryElasticsearch breweryElasticsearch, IBreweryRepository breweryRepository, IBeerRepository beerRepository, IBeerElasticsearch beerElasticsearch) { _userElasticsearch = userElasticsearch; _userRepository = userRepository; _breweryElasticsearch = breweryElasticsearch; _breweryRepository = breweryRepository; _beerRepository = beerRepository; _beerElasticsearch = beerElasticsearch; }
public void Init() { TestUtil.DeleteDataInDatabase(); TestUtil.InsertDataDatabase(); AutoMapperConfiguration.Configure(); _context = new MicrobrewitContext(); _breweryElasticsearch = new BreweryElasticsearch(); // _breweryService = new BreweryService(_repository,_breweryElasticsearch); _repository = new BreweryRepository(); _controller = new BreweryController(_breweryService); }
public void TextFixtureSetup() { AutoMapperConfiguration.Configure(); _breweryElasticsearch = new BreweryElasticsearch(); _breweryRepository = new BreweryRepository(); _userElasticsearch = new UserElasticsearch(); _userRepository = new UserRepository(); _userService = new UserService(_userElasticsearch,_userRepository,_breweryElasticsearch,_breweryRepository,_beerRepository,_beerElasticsearch); _breweryService = new BreweryService(_breweryRepository, _breweryElasticsearch, _userService); _beerRepository = new BeerRepository(); _beerElasticsearch = new BeerElasticsearch(); _beerService = new BeerService(_beerElasticsearch,_beerRepository,_userService,_breweryService); }
public void TextFixtureSetup() { AutoMapperConfiguration.Configure(); _breweryElasticsearch = new BreweryElasticsearch(); _breweryRepository = new BreweryRepository(); _userElasticsearch = new UserElasticsearch(); _userRepository = new UserRepository(); _userService = new UserService(_userElasticsearch, _userRepository, _breweryElasticsearch, _breweryRepository, _beerRepository, _beerElasticsearch); _breweryService = new BreweryService(_breweryRepository, _breweryElasticsearch, _userService); _beerRepository = new BeerRepository(); _beerElasticsearch = new BeerElasticsearch(); _beerService = new BeerService(_beerElasticsearch, _beerRepository, _userService, _breweryService); }
public BreweryService(IBreweryRepository breweryRepository, IBreweryElasticsearch breweryElasticsearch, IUserService userService) { _breweryRepository = breweryRepository; _breweryElasticsearch = breweryElasticsearch; _userService = userService; }
public BreweryService(IBreweryRepository breweryRepository, IBreweryElasticsearch breweryElasticsearch) { _breweryElasticsearch = breweryElasticsearch; _breweryRepository = breweryRepository; }