public ShopController(IProductContext productContext, IReviewContext reviewContext, IOrderContext orderContext, IBillingContext billingContext) { productLogic = new ProductLogic(productContext); reviewLogic = new ReviewLogic(reviewContext); orderLogic = new OrderLogic(orderContext); billingLogic = new BillingLogic(billingContext); }
public void AddReview(Review review) { IReviewContext db = DataFactory.DataFactory.GetReviewContext(); ReviewDto reviewDto = DataFactory.DataFactory.GetReviewDto(); reviewDto.ReviewId = review.ReviewId; reviewDto.ReviewComment = review.ReviewComment; reviewDto.ReviewStars = review.ReviewStars; db.AddReview(reviewDto); }
public ReviewController(IBookContext bookContext, IReviewContext reviewContext) { if (bookContext == null) { throw new ArgumentNullException(); } if (reviewContext == null) { throw new ArgumentNullException(); } _bookContext = bookContext; _reviewContext = reviewContext; }
public ReviewCollection() { IReviewContext db = DataFactory.DataFactory.GetReviewContext(); _reviews = new List <Review>(); List <ReviewDto> reviewDtos = db.GetReviews(); foreach (var review in reviewDtos) { _reviews.Add(new Review() { ReviewId = review.ReviewId, ReviewComment = review.ReviewComment, ReviewStars = review.ReviewStars }); } }
public ReviewController(IReviewContext reviewContext, IGebruikerContext gebruikerContext) { this.reviewContext = reviewContext; this.gebruikerContext = gebruikerContext; }
public ProductController(IProductContext productContext, IReviewContext reviewContext) { productLogic = new ProductLogic(productContext); reviewLogic = new ReviewLogic(reviewContext); }
public ReviewController(IBoardGameContext boardGameContext, IReviewContext reviewContext) { _boardGameContext = boardGameContext ?? throw new ArgumentNullException(); _reviewContext = reviewContext ?? throw new ArgumentNullException(); }
public ReviewLogic(IReviewContext context) { reviewRepository = new ReviewRepository(context); }
public ReviewRepo(IReviewContext context) { this._context = context; }
public ReviewFilter(IReviewContext reviewContext, IFilmContext filmContext) { _reviewContext = reviewContext; _filmContext = filmContext; }
public ReviewLogic(IReviewContext context) { reviewContext = context; }
public ReviewLogic(IReviewContext reviewContext) { _reviewContext = reviewContext; }
public void RemoveReview(int reviewId) { IReviewContext db = DataFactory.DataFactory.GetReviewContext(); db.RemoveReview(reviewId); }
public ReviewRepository(IReviewContext Context) { this.Context = Context; }
public CommentFilter(ICommentContext commentContext, IReviewContext reviewContext, IFilmContext filmContext) { _commentContext = commentContext; _reviewContext = reviewContext; _filmContext = filmContext; }
public ReactieAPIController(IReactieContext reactieContext, IReviewContext reviewContext) { this.reactieContext = reactieContext; this.reviewContext = reviewContext; }
public ReviewAPIController(IReviewContext reviewContext) { this.reviewContext = reviewContext; }
public ReviewRepository(IReviewContext context) { Context = context; }
public ReviewLogic() { _reviewContext = ContextFactory.CreateReviewContext(); _usedServiceLogic = new UsedServiceLogic(); }