コード例 #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));
 }