コード例 #1
0
        public void TestMethod2()
        {
            EmployeeRepo employeeRepo = new EmployeeRepo();
            bool         success      = employeeRepo.AddNewEmployee("Terisa", 300, System.DateTime.Now, "Med", "1472583690", "Bangalore", 'F');

            Assert.IsTrue(success);
        }
コード例 #2
0
 public ActionResult Add(Employee emp)
 {
     repo.AddNewEmployee(emp);
     return(RedirectToAction("List"));
 }