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

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