public void Teste_SalaRepositorio_CarregarSala_DeveSerOk() { _sala = ObjectMother.RetorneSalaExistenteOk(); Sala salaEncontrada = _repositorio.Carregar(_sala.Id); salaEncontrada.Should().NotBeNull(); salaEncontrada.Id.Should().Be(_sala.Id); }
public Sala Carregar(long id) { if (id <= 0) { throw new IdentifierUndefinedException(); } return(_salaRepositorio.Carregar(id)); }