示例#1
0
        public void GetLeavedetailsByEmployeeNoTest()
        {
            IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
            string EmployeeNo = "890"; // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetLeavedetailsByEmployeeNo(EmployeeNo),
                                    typeof(IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable),
                                    "IGRSS.BusinessLogicLayer.Leave.LeaveRegisterDataTable() return wrong type of data");
        }
示例#2
0
        public void GetLeavedetailsByEmployeeNameTest()
        {
            IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
            string EmployeeName = "ddd";

            Assert.IsInstanceOfType(target.GetLeavedetailsByEmployeeName(EmployeeName),
                                    typeof(IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable),
                                    "IGRSS.BusinessLogicLayer.Leave.LeaveRegisterDataTable() return wrong type of data");
        }
示例#3
0
 public void AddLeaveDetailsTest()
 {
     IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
     FormViewParameter Parameter =new FormViewParameter(); // TODO: Initialize to an appropriate value
     IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable Dt = new IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable();
     DataRow dr = Dt.NewRow();
     dr["EmployeeID"] = new Guid("fc9b70d5-9344-4059-87f2-a9d082601c76");
     dr["LeaveType"] = new Guid("9ec9c473-dd5d-47af-885a-59a65a5bb651");
     dr["LeaveFrom"] = DateTime.Now;
     dr["LeaveTo"] = DateTime.Now;
     dr["Reason"] ="just not filing well";
     dr["ResumedDutyOn"] = DateTime.Now.AddDays(5);
     Parameter.Values = Dt.Rows[0];
     Dt.Rows.Add(dr);
     bool expected = true;
     Assert.AreEqual(expected, target.AddLeaveDetails(Parameter), "IGRSS.BusinessLogicLayer.Leave.AddLeaveDetails did not return the expected value." +
             "");
 }
示例#4
0
        public void AddLeaveDetailsTest()
        {
            IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
            FormViewParameter Parameter           = new FormViewParameter(); // TODO: Initialize to an appropriate value

            IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable Dt = new IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable();
            DataRow dr = Dt.NewRow();

            dr["EmployeeID"]    = new Guid("fc9b70d5-9344-4059-87f2-a9d082601c76");
            dr["LeaveType"]     = new Guid("9ec9c473-dd5d-47af-885a-59a65a5bb651");
            dr["LeaveFrom"]     = DateTime.Now;
            dr["LeaveTo"]       = DateTime.Now;
            dr["Reason"]        = "just not filing well";
            dr["ResumedDutyOn"] = DateTime.Now.AddDays(5);
            Parameter.Values    = Dt.Rows[0];
            Dt.Rows.Add(dr);
            bool expected = true;

            Assert.AreEqual(expected, target.AddLeaveDetails(Parameter), "IGRSS.BusinessLogicLayer.Leave.AddLeaveDetails did not return the expected value." +
                            "");
        }
示例#5
0
 public void GetLeavedetailsTest()
 {
     IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
     Assert.IsInstanceOfType(target.GetLeavedetails(),typeof(IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable),"IGRSS.BusinessLogicLayer.Leave.LeaveRegisterDataTable() return wrong type of data");
 }
示例#6
0
 public void GetLeavedetailsByEmployeeNoTest()
 {
     IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
     string EmployeeNo="890"; // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetLeavedetailsByEmployeeNo(EmployeeNo),
     typeof(IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable),
     "IGRSS.BusinessLogicLayer.Leave.LeaveRegisterDataTable() return wrong type of data");
 }
示例#7
0
 public void GetLeavedetailsByEmployeeNameTest()
 {
     IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
     string EmployeeName ="ddd";
     Assert.IsInstanceOfType(target.GetLeavedetailsByEmployeeName(EmployeeName),
         typeof(IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable),
         "IGRSS.BusinessLogicLayer.Leave.LeaveRegisterDataTable() return wrong type of data");
 }
示例#8
0
 public void GetLeavedetailsTest()
 {
     IGRSS.BusinessLogicLayer.Leave target = new IGRSS.BusinessLogicLayer.Leave();
     Assert.IsInstanceOfType(target.GetLeavedetails(), typeof(IGRSS.DataAccessLayer.Leave.LeaveRegisterDataTable), "IGRSS.BusinessLogicLayer.Leave.LeaveRegisterDataTable() return wrong type of data");
 }