public void EmprestimoRepositorio_Get_ShouldBeOk() { int biggerThan = 0; int idSearch = 1; Emprestimo result = _repositorio.Get(idSearch); result.Should().NotBeNull(); result.Id.Should().Be(idSearch); result.Id.Should().BeGreaterThan(biggerThan); }
public Emprestimo Get(long id) { if (id < 1) { throw new ExcecaoIdentifivadorIndefinido(); } return(_repositorio.Get(1)); }