コード例 #1
0
 public RestaurantOptionLogic(IRestaurantOptionRepository restaurantOptionRepository, IRestaurantLogic restaurantLogic, IVoteLogic voteLogic, IVetoLogic vetoLogic)
 {
     _restaurantOptionRepository = restaurantOptionRepository;
     _restaurantLogic = restaurantLogic;
     _voteLogic = voteLogic;
     _vetoLogic = vetoLogic;
 }
コード例 #2
0
 public void Dispose()
 {
     _voteLogic = null;
     _mockVoteRepository = null;
     _mockRestaurantRepository = null;
     _mockUserRepository = null;
 }
コード例 #3
0
 public VoteLogicFacts()
 {
     _mockVoteRepository = new Mock<IVoteRepository>();
     _mockRestaurantRepository = new Mock<IRestaurantRepository>();
     _mockUserRepository = new Mock<IUserRepository>();
     _voteLogic = new VoteLogic(_mockVoteRepository.Object, _mockRestaurantRepository.Object, _mockUserRepository.Object);
 }
コード例 #4
0
 public RestaurantLogic(IRestaurantRepository restaurantRepository, IRestaurantRatingLogic restaurantRatingLogic, IVoteLogic voteLogic, IRestaurantOptionRepository restaurantOptionRepository)
 {
     _restaurantRepository = restaurantRepository;
     _restaurantRatingLogic = restaurantRatingLogic;
     _voteLogic = voteLogic;
     _restaurantOptionRepository = restaurantOptionRepository;
 }
コード例 #5
0
 public HomeController(IRestaurantLogic restaurantLogic, IVoteLogic voteLogic, IRestaurantOptionLogic restaurantOptionLogic, IUserLogic userLogic, IVetoLogic vetoLogic, IRestaurantRatingLogic restaurantRatingLogic)
 {
     _restaurantLogic = restaurantLogic;
     _voteLogic = voteLogic;
     _restaurantOptionLogic = restaurantOptionLogic;
     _userLogic = userLogic;
     _vetoLogic = vetoLogic;
     _restaurantRatingLogic = restaurantRatingLogic;
 }
コード例 #6
0
 public StatsController(IRestaurantLogic restaurantLogic, IVoteLogic voteLogic, IRestaurantOptionLogic restaurantOptionLogic)
 {
     _restaurantLogic = restaurantLogic;
     _voteLogic = voteLogic;
     _restaurantOptionLogic = restaurantOptionLogic;
 }