public void Teste_SalaRepositorio_CarregarSala_DeveSerOk()
        {
            _sala = ObjectMother.RetorneSalaExistenteOk();
            Sala salaEncontrada = _repositorio.Carregar(_sala.Id);

            salaEncontrada.Should().NotBeNull();
            salaEncontrada.Id.Should().Be(_sala.Id);
        }
示例#2
0
 public Sala Carregar(long id)
 {
     if (id <= 0)
     {
         throw new IdentifierUndefinedException();
     }
     return(_salaRepositorio.Carregar(id));
 }