public async Task <TrainingLogModel> Post([FromBody] CreateTrainingLogModel requestModel)
        {
            var item = await _query.Create(requestModel);

            var model = _mapper.Map <TrainingLogModel>(item);

            return(model);
        }
        public async Task CreateShouldSaveNew()
        {
            var model = new CreateTrainingLogModel
            {
                Date        = DateTime.Now,
                Description = _random.Next().ToString(),
                Rating      = _random.Next(),
                Comment     = _random.Next().ToString()
            };

            var result = await _query.Create(model);

            result.Date.Should().Be(model.Date);
            result.Description.Should().Be(model.Description);
            result.Rating.Should().Be(model.Rating);
            result.Comment.Should().Be(model.Comment);
            result.UserId.Should().Be(_currentUser.Id);

            _uow.Verify(x => x.Add(result));
            _uow.Verify(x => x.CommitAsync());
        }