Ejemplo n.º 1
0
        public void GetEmployeesTest()
        {
            EmployeesDetailsController controller = new EmployeesDetailsController();
            ActionResult result = controller.Index();

            // Assert
            Assert.IsNotNull(result);
        }
Ejemplo n.º 2
0
        public void CreateEmployeeTest()
        {
            EmployeesDetailsController controller = new EmployeesDetailsController();

            var employee = defaultEmployee();

            ActionResult result = controller.Create(employee);

            // Assert
            Assert.IsNotNull(result);
        }