public void ObtengoListadoCompletoDeLaPagina()
        {
            var provider = new ProviderAutoFocoSync();
            var result   = provider.BuscarVehiculos(new BusquedaRequestDTO()
            {
                CodVehiculoTipo = "usado"
            });

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
        public void ObtengoListadoConFiltroUbicacion()
        {
            var provider = new ProviderAutoFocoSync();
            var request  = new BusquedaRequestDTO();

            request.CodVehiculoTipo      = "usado";
            request.CodVehiculoProvincia = "cordoba";
            var result = provider.BuscarVehiculos(request);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
        public void ObtengoListadoConFiltroMarca()
        {
            var provider = new ProviderAutoFocoSync();
            var request  = new BusquedaRequestDTO();

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

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
        public void ObtengoListadoOrdenado()
        {
            var provider = new ProviderAutoFocoSync();
            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);
        }
        public void ObtengoListadoConFiltroCommbustible()
        {
            var provider = new ProviderAutoFocoSync();
            var request  = new BusquedaRequestDTO();

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

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Items.Count > 0);
        }
        public void ObtengoListadoConFiltroKilometraje()
        {
            var provider = new ProviderAutoFocoSync();
            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);
        }
        public void ObtengoListadoConFiltroAnio()
        {
            var provider = new ProviderAutoFocoSync();
            var request  = new BusquedaRequestDTO();

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

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