Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public ReviewController(IBookContext bookContext, IReviewContext reviewContext)
 {
     if (bookContext == null)
     {
         throw new ArgumentNullException();
     }
     if (reviewContext == null)
     {
         throw new ArgumentNullException();
     }
     _bookContext   = bookContext;
     _reviewContext = reviewContext;
 }
Exemplo n.º 4
0
        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
                });
            }
        }
Exemplo n.º 5
0
 public ReviewController(IReviewContext reviewContext, IGebruikerContext gebruikerContext)
 {
     this.reviewContext    = reviewContext;
     this.gebruikerContext = gebruikerContext;
 }
Exemplo n.º 6
0
 public ProductController(IProductContext productContext, IReviewContext reviewContext)
 {
     productLogic = new ProductLogic(productContext);
     reviewLogic  = new ReviewLogic(reviewContext);
 }
Exemplo n.º 7
0
 public ReviewController(IBoardGameContext boardGameContext, IReviewContext reviewContext)
 {
     _boardGameContext = boardGameContext ?? throw new ArgumentNullException();
     _reviewContext    = reviewContext ?? throw new ArgumentNullException();
 }
Exemplo n.º 8
0
 public ReviewLogic(IReviewContext context)
 {
     reviewRepository = new ReviewRepository(context);
 }
Exemplo n.º 9
0
 public ReviewRepo(IReviewContext context)
 {
     this._context = context;
 }
Exemplo n.º 10
0
 public ReviewFilter(IReviewContext reviewContext, IFilmContext filmContext)
 {
     _reviewContext = reviewContext;
     _filmContext   = filmContext;
 }
Exemplo n.º 11
0
 public ReviewLogic(IReviewContext context)
 {
     reviewContext = context;
 }
Exemplo n.º 12
0
 public ReviewLogic(IReviewContext reviewContext)
 {
     _reviewContext = reviewContext;
 }
Exemplo n.º 13
0
        public void RemoveReview(int reviewId)
        {
            IReviewContext db = DataFactory.DataFactory.GetReviewContext();

            db.RemoveReview(reviewId);
        }
Exemplo n.º 14
0
 public ReviewRepository(IReviewContext Context)
 {
     this.Context = Context;
 }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 18
0
 public ReviewRepository(IReviewContext context)
 {
     Context = context;
 }
Exemplo n.º 19
0
 public ReviewLogic()
 {
     _reviewContext    = ContextFactory.CreateReviewContext();
     _usedServiceLogic = new UsedServiceLogic();
 }