コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
 public BreweryService(IBreweryRepository breweryRepository, IBreweryElasticsearch breweryElasticsearch, IUserService userService)
 {
     _breweryRepository    = breweryRepository;
     _breweryElasticsearch = breweryElasticsearch;
     _userService          = userService;
 }
コード例 #8
0
 public BreweryService(IBreweryRepository breweryRepository, IBreweryElasticsearch breweryElasticsearch, IUserService userService)
 {
     _breweryRepository = breweryRepository;
     _breweryElasticsearch = breweryElasticsearch;
     _userService = userService;
 }
コード例 #9
0
 public BreweryService(IBreweryRepository breweryRepository, IBreweryElasticsearch breweryElasticsearch)
 {
     _breweryElasticsearch = breweryElasticsearch;
     _breweryRepository    = breweryRepository;
 }