public void Get_CallsGetAll() { _sut = new ReviewClientService(_reviewClientRepositoryMock.Object, _unitOfWorkMock.Object, _userRepositoryMock.Object); _sut.Get(); _reviewClientRepositoryMock.Verify(m => m.GetAll(), Times.Once); }
public ActionResult Get() { var reviews = _reviewClientService.Get().ToList(); var allReviews = Mapper.Map <IEnumerable <ReviewClient>, IEnumerable <ReviewViewModel> >(reviews); return(View(allReviews)); }