public void Listar()
        {
            // Act
            var caminhoes = _service.Listar();

            // Assert
            Assert.Equal(6, caminhoes.Count());
        }
예제 #2
0
 public IEnumerable <Caminhao> Get()
 {
     try
     {
         return(_service.Listar());
     }
     catch (Exception)
     {
         return(null);
     }
 }