public void CheckShowFoundBills_WithCorrectCity() { var model = new BillModel(); string searchString = "Kolding"; model.FindBills(searchString); Assert.AreNotEqual(0, model.Bills.Count); }
public void CheckShowFoundBills_WithWrongCity() { var model = new BillModel(); string searchString = "New York"; model.FindBills(searchString); Assert.AreEqual(0, model.Bills.Count); }
public ActionResult ShowFoundBills(string searchString) { var model = new BillModel(); model.FindBills(searchString); ViewBag.SearchString = searchString; return(View(model)); }