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"); }
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"); }
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." + ""); }
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." + ""); }
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"); }
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"); }
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"); }
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"); }