コード例 #1
0
        public IQueryable <TrainingLogModel> Get()
        {
            var result = _query.Get();
            var models = _mapper.Map <Traininglog, TrainingLogModel>(result);

            return(models);
        }
コード例 #2
0
        public void GetShouldReturnAll()
        {
            _traininglogList.Add(new Traininglog {
                UserId = _currentUser.Id
            });

            var result = _query.Get().ToList();

            result.Count.Should().Be(1);
        }