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); }
public JsonResult Selling(string brand, string model) { return(Json(carsApi.Selling(brand, model), JsonRequestBehavior.AllowGet)); }
public void PageCorrectData(string brandName, string modelName, int minCount) { Assert.That(carsApi.Selling(brandName, modelName).Length, Is.GreaterThanOrEqualTo(minCount)); }