Beispiel #1
0
        public void Search_EmployeeList_By_Id_Returns_Charles_Smith()
        {
            IVitalsView   view = new MockVitalsView();
            IEmployeeData data = new MockEmployeeData();

            var presenter = new VitalsPresenter(view, data);

            List <Employee> emp = presenter.GetEmployeeGridListById(2);

            string fullName = string.Empty;

            foreach (var item in emp)
            {
                fullName = item.FullName;
            }

            Assert.AreEqual("Smith, Charles", fullName);
        }