예제 #1
0
        public void ObterVeiculoPeloChassi()
        {
            var chassi          = "123";
            var result          = _serviceMemory.ObterPorChassi(chassi).Result;
            var operacaoIsValid = OperacaoValida();

            Assert.NotNull(result);
            Assert.True(operacaoIsValid);
            Assert.Equal(chassi, result.Chassi);
        }
예제 #2
0
 public async Task <ActionResult <VeiculoDetalheDto> > ObterPorChassi(string chassi)
 {
     return(CustomResponse(await _veiculoService.ObterPorChassi(chassi)));
 }