Example #1
0
        public void CheckGetFoundCustomers_returns_NoFoundItems()
        {
            var    cusomerModel = new CustomerModel();
            string searchString = "WrongTown";

            cusomerModel.GetFoundCustomers(searchString);

            Assert.IsTrue(cusomerModel.Customers.Count == 0);
        }
Example #2
0
        public void CheckGetFoundCustomers_returns_FoundItems()
        {
            var    cusomerModel = new CustomerModel();
            string searchString = "Kolding";

            cusomerModel.GetFoundCustomers(searchString);

            Assert.IsTrue(cusomerModel.Customers.Count != 0);
        }
Example #3
0
        public ActionResult ShowFoundCustomers(string searchString)
        {
            var model = new CustomerModel();

            model.GetFoundCustomers(searchString);

            ViewBag.SearchString = searchString;

            return(View(model));
        }