public async Task should_get_false_when_does_not_exists() { // WHEN var result = await _sut.Exists("not-exists"); // THEN result.Should().BeFalse(); }
public ActionResult <UserDto> GetById(Guid id) { if (_readRepository.Exists(id) == false) { return(NotFound()); } return(Ok(_mapper.EntityToDto(_readRepository.GetById(id)))); }
public bool Exists(long id) => Inner.Exists(id);