public void CheckGetFoundMeters_With_Correct_City() { var meterModel = new MeterModel(); meterModel.GetFoundMeters("Kolding"); Assert.AreNotEqual(0, meterModel.Meters.Count); }
public void CheckGetFoundMeters_With_Wrong_City() { var meterModel = new MeterModel(); meterModel.GetFoundMeters("New York"); Assert.AreEqual(0, meterModel.Meters.Count); }
public ActionResult ShowFoundMeters(string searchString) { var model = new MeterModel(); model.GetFoundMeters(searchString); ViewBag.SearchString = searchString; return(View(model)); }