Пример #1
0
        public void ObtengoListadoCompletoDeLaPagina()
        {
            var provider = new ProviderDeAutosSync();
            var result   = provider.BuscarVehiculos(new BusquedaRequestDTO()
            {
                CodVehiculoTipo = "usado"
            });

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #2
0
        public void ObtengoListadoConFiltroUbicacion()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo      = "usado";
            request.CodVehiculoProvincia = "buenos-aires";
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #3
0
        public void ObtengoListadoConFiltroMarca()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo  = "usado";
            request.CodVehiculoMarca = "volkswagen";
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #4
0
        public void ObtengoListadoOrdenado()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo = "usado";
            request.Orden           = "kilometraje-ascendenete";
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #5
0
        public void ObtengoListadoConFiltroSegmento()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo     = "usado";
            request.CodVehiculoSegmento = "hatchback-5p";
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #6
0
        public void ObtengoListadoConFiltroCommbustible()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo        = "usado";
            request.CodVehiculoCombustible = "nafta";
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #7
0
        public void ObtengoListadoConFiltroKilometraje()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo        = "usado";
            request.Kilometraje.ValorDesde = 1000;
            request.Kilometraje.ValorHasta = 250000;
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
Пример #8
0
        public void ObtengoListadoConFiltroAnio()
        {
            var provider = new ProviderDeAutosSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo = "usado";
            request.Anio.ValorDesde = 1990;
            request.Anio.ValorHasta = DateTime.Now.Year;
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }