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); }
public ReviewController(IRestaurantBL restaurantBL, IReviewBL reviewBL) { _restaurantBL = restaurantBL; _reviewBL = reviewBL; }
public ReviewsController(IReviewBL service) { this._service = service; }