public void InitializeTests()
        {
            AppDataContext           _context              = new AppDataContext();
            IChoiceHistoryRepository _repository           = new ChoiceHistoryRepository(_context);
            IVoteRepository          _voteRepository       = new VoteRepository(_context);
            IRestaurantRepository    _restaurantRepository = new RestaurantRepository(_context);

            _service = new ChoiceHistoryService(_repository, _voteRepository, _restaurantRepository);
        }
Beispiel #2
0
 public HomeController(IChoiceHistoryService choiceService, IVoteService voteService, IRestaurantService restaurantService)
 {
     this._choiceService     = choiceService;
     this._voteService       = voteService;
     this._restaurantService = restaurantService;
 }
 public NotificationJob(IChoiceHistoryService service)
 {
     this._service = service;
 }