Пример #1
0
        public void Get_CallsGetAll()
        {
            _sut = new ReviewClientService(_reviewClientRepositoryMock.Object, _unitOfWorkMock.Object, _userRepositoryMock.Object);

            _sut.Get();

            _reviewClientRepositoryMock.Verify(m => m.GetAll(), Times.Once);
        }
Пример #2
0
        public ActionResult Get()
        {
            var reviews = _reviewClientService.Get().ToList();

            var allReviews = Mapper.Map <IEnumerable <ReviewClient>, IEnumerable <ReviewViewModel> >(reviews);

            return(View(allReviews));
        }