Пример #1
0
 public void getAllEmpTypeTest()
 {
     EmployeeImpl target = new EmployeeImpl(); // TODO: Initialize to an appropriate value
     List<EmpType> expected = null; // TODO: Initialize to an appropriate value
     List<EmpType> actual;
     actual = target.getAllEmpType();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #2
0
        public void getEmpByMultiFilterTest()
        {
            EmployeeImpl target = new EmployeeImpl(); // TODO: Initialize to an appropriate value

            EmpSearchTerm empSearchTerm = new EmpSearchTerm();
            empSearchTerm.EmpName = "李";
            empSearchTerm.MultiEmpTypeId = "HR,Tester,Developer";
            empSearchTerm.MultiDeptId = "D_01,D_02,D_03,D_03_01";
            empSearchTerm.MultiStatusKBN = "1,2";
            empSearchTerm.LeaveTimeStart = Convert.ToDateTime("2100-02-03");

            List<Employee> actual;
            actual = target.getEmpByMultiFilter(empSearchTerm);
            Assert.AreEqual(1, actual.Count);
            Assert.AreEqual("N004", actual[0].EmpID);
        }
Пример #3
0
 public void EmployeeImplConstructorTest()
 {
     EmployeeImpl target = new EmployeeImpl();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Пример #4
0
 public void SaveTest()
 {
     EmployeeImpl target = new EmployeeImpl(); // TODO: Initialize to an appropriate value
     Employee emp = null; // TODO: Initialize to an appropriate value
     target.Save(emp);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Пример #5
0
 public void getFormEmpEntityTest()
 {
     EmployeeImpl target = new EmployeeImpl(); // TODO: Initialize to an appropriate value
     string empId = "N001"; // TODO: Initialize to an appropriate value
     EmpFormEntity expected = null; // TODO: Initialize to an appropriate value
     EmpFormEntity actual;
     actual = target.getFormEmpEntity(empId,
         EmpFormEntityMask.EmpType |
         EmpFormEntityMask.EmpDept |
         EmpFormEntityMask.MonFix |
         EmpFormEntityMask.BonusFix);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #6
0
        public void getFormEmpEntityListTest()
        {
            EmployeeImpl target = new EmployeeImpl(); // TODO: Initialize to an appropriate value

            EmpSearchTerm empSearchTerm = new EmpSearchTerm();
            empSearchTerm.EmpName = "李";
            empSearchTerm.MultiEmpTypeId = "HR,Tester,Developer";
            empSearchTerm.MultiDeptId = "D_01,D_02,D_03,D_03_01";
            empSearchTerm.MultiStatusKBN = "1,2";
            //empSearchTerm.LeaveTimeStart = Convert.ToDateTime("2100-02-03");

            List<EmpFormEntity> actual;
            actual = target.getFormEmpEntityList(empSearchTerm,
                                EmpFormEntityMask.EmpType |
                                EmpFormEntityMask.EmpDept |
                                EmpFormEntityMask.MonFix |
                                EmpFormEntityMask.BonusFix);
            Assert.AreEqual(3, actual.Count);
            Assert.AreEqual("N001", actual[0].Employee.EmpID);
        }
Пример #7
0
 public void getEmpTypeByEmpTypeIDTest()
 {
     EmployeeImpl target = new EmployeeImpl(); // TODO: Initialize to an appropriate value
     string strEmpTypeID = string.Empty; // TODO: Initialize to an appropriate value
     EmpType expected = new EmpType(); // TODO: Initialize to an appropriate value
     EmpType actual;
     actual = target.getEmpTypeByEmpTypeID(strEmpTypeID);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }