Example #1
0
        public void RetornarTodosOsVeiculosAtravesDeServico()
        {
            ServicoDeDadosJBS.ServicoDeDadosJBSClient servico = new ServicoDeDadosJBS.ServicoDeDadosJBSClient();
            IList <VeiculoDTO> retorno = servico.RetornarListaDeVeiculos();

            Assert.IsTrue(retorno.Count > 0);
        }
Example #2
0
        public void InserirVeiculoAtravesDeServico()
        {
            ServicoDeDadosJBS.ServicoDeDadosJBSClient servico = new ServicoDeDadosJBS.ServicoDeDadosJBSClient();

            VeiculoDTO veiculo = new VeiculoDTO {
                Placa = "EMZ3423", Categoria = 1
            };

            var retorno = servico.InserirVeiculo(veiculo);

            Assert.IsTrue(retorno);
        }