コード例 #1
0
 public void LoadMarkData(object obj)
 {
     CompleteLabel.Dispatcher.BeginInvoke(new Action(LoadStarted));
     models = carsApi.Models(obj.ToString());
     BrandComboBox.Dispatcher.BeginInvoke(new Action <IDictionary <string, int> >(InitializeModelComboBox), models);
     CompleteLabel.Dispatcher.BeginInvoke(new Action(LoadComplited));
 }
コード例 #2
0
 public JsonResult Models(string brandName)
 {
     return(Json(carsApi.Models(brandName), JsonRequestBehavior.AllowGet));
 }
コード例 #3
0
 public void AlfaRomeoModelsDataExists()
 {
     CollectionAssert.Contains(carsApi.Models("Alfa Romeo"), new KeyValuePair <string, int>("146", 3));
 }