Beispiel #1
0
 public ReviewController(
     IMapper mapper,
     IReviewBL reviewBL)
 {
     _mapper   = mapper;
     _reviewBL = reviewBL;
 }
        public void Initialize()
        {
            _db        = new Mock <ApplicationDbContext>();
            _reviewSet = new Mock <DbSet <Review> >();

            _reviewBL   = new ReviewBL(_db.Object);
            _controller = new ReviewsController(_reviewBL);
        }
Beispiel #3
0
 public ReviewController(IRestaurantBL restaurantBL, IReviewBL reviewBL)
 {
     _restaurantBL = restaurantBL;
     _reviewBL     = reviewBL;
 }
Beispiel #4
0
 public ReviewsController(IReviewBL service)
 {
     this._service = service;
 }