public CreateReviewCommandHandler(
     ICurrentUser currentUser,
     IReviewDomainRepository reviewRepository,
     IReviewFactory reviewFactory)
 {
     this.currentUser      = currentUser;
     this.reviewRepository = reviewRepository;
     this.reviewFactory    = reviewFactory;
 }
Exemplo n.º 2
0
 public ContactService(IRepository <Review> review, IReviewFactory reviewFactory)
 {
     _review        = review ?? throw new ArgumentNullException(nameof(review));
     _reviewFactory = reviewFactory ?? throw new ArgumentNullException(nameof(reviewFactory));
 }
Exemplo n.º 3
0
 public HomeController(IRestaurantsRepository repos, IRestaurantReviewsRepository restaurantReviewsRepo, IReviewFactory reviewFactory)
 {
     _repos = repos;
     _restaurantReviewsRepo = restaurantReviewsRepo;
     _reviewFactory         = reviewFactory;
 }