Пример #1
0
        private void LoadSellingForModel(object obj)
        {
            var selected = (ModelDetails)obj;

            if (selected.Cars == null)
            {
                selected.Cars = carsApi.Selling(selected.Brand, selected.Model);
            }
            SellingCars.Dispatcher.BeginInvoke(new Action <ModelDetails>(EyedModelsInitListBox), selected);
        }
Пример #2
0
 public JsonResult Selling(string brand, string model)
 {
     return(Json(carsApi.Selling(brand, model), JsonRequestBehavior.AllowGet));
 }
Пример #3
0
 public void PageCorrectData(string brandName, string modelName, int minCount)
 {
     Assert.That(carsApi.Selling(brandName, modelName).Length, Is.GreaterThanOrEqualTo(minCount));
 }