Пример #1
0
        public async Task should_get_false_when_does_not_exists()
        {
            // WHEN
            var result = await _sut.Exists("not-exists");

            // THEN
            result.Should().BeFalse();
        }
Пример #2
0
        public ActionResult <UserDto> GetById(Guid id)
        {
            if (_readRepository.Exists(id) == false)
            {
                return(NotFound());
            }

            return(Ok(_mapper.EntityToDto(_readRepository.GetById(id))));
        }
Пример #3
0
 public bool Exists(long id) => Inner.Exists(id);