Example #1
0
        public void GetEmployeeDetailsByIdTest()
        {
            IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
            Guid EmployeeID = new Guid("1947a43e-631b-40d1-9bb4-108659380653"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetEmployeeDetailsById(EmployeeID), typeof(IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
                                    "expected value.");
        }
Example #2
0
        public void GetDesignationMasterDetailsByIdTest()
        {
            IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
            Guid DesignationID = new Guid("3c1c2323-c442-46ec-830c-90229d02ab1c"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetDesignationMasterDetails(), typeof(IGRSS.DataAccessLayer.Employee.DesignationMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
                                    "expected value.");
        }
Example #3
0
        public void GetEmployeeDetailsByEmpNoTest()
        {
            IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
            string EmployeeNo = "321322"; // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetEmployeeDetailsByEmpNo(EmployeeNo), typeof(IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
                                    "expected value.");
        }
Example #4
0
        public void DeleteEmployeeQualificationTest()
        {
            IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
            Guid EmployeeQualiID = new Guid("306f4565-db8e-4351-ac7d-0599b8f245f1"); // TODO: Initialize to an appropriate value

            Assert.AreEqual(true, target.DeleteEmployeeQualification(EmployeeQualiID), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
                            "expected value.");
        }
Example #5
0
        public void GetDepartmentMasterDetailsByDepartmentIdTest()
        {
            IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
            Guid DepartmentId = new Guid("1ce959b5-27e2-489b-9d9e-3ef09110b66c");

            Assert.IsInstanceOfType(target.GetDepartmentMasterDetails(), typeof(IGRSS.DataAccessLayer.Employee.DepartmentMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
                                    "expected value.");
        }
Example #6
0
        public void AddNewEmployeeMasterTest()
        {
            IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
            FormViewParameter Parameter = new FormViewParameter();

            IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable dt = new  IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable();
            DataRow dr = dt.NewRow();

            dr["EmployeeId"]       = new Guid();
            dr["EmployeeNo"]       = "234";
            dr["FirstName"]        = "PRADEEP";
            dr["MiddleName"]       = "sahu";
            dr["LastName"]         = "NITHYANAND";
            dr["PostalAddress"]    = "SSSSSSSSSSS";
            dr["PermanentAddress"] = "FFFFFFFFF";
            dr["DateOfBirth"]      = DateTime.Now;
            dr["FatherName"]       = "BANGALORE";
            dr["Height"]           = 12;
            dr["VisibleMarks"]     = 5;
            dr["OfficeID"]         = new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
            dr["DepartmentID"]     = new Guid("8971ce62-34a8-4175-9e1f-8d4bcc1721a1");
            dr["DesignationID"]    = new Guid("7c83e591-a861-4b4f-bd1d-12f99cc32123");
            dr["Salary"]           = 200;
            dr["Allowances"]       = 200;
            dr["StartDate"]        = DateTime.Now;
            dr["CreatedBy"]        = "RAJA";
            dt.Rows.Add(dr);
            Parameter.Values = dt.Rows[0];
            DataTable dtQualification = new DataTable();

            dtQualification.Columns.Add("QualificationID", typeof(Guid));
            dtQualification.Columns.Add("Details", typeof(string));
            DataRow drQualification;

            drQualification = dtQualification.NewRow();
            drQualification["QualificationID"] = new Guid("5e48e449-fb3f-4352-9e11-080c91329566");
            drQualification["Details"]         = "gsgssgsgs";
            dtQualification.Rows.Add(drQualification);
            Assert.AreEqual(true, target.AddNewEmployeeMaster(Parameter, dtQualification), "IGRSS.BusinessLogicLayer.Employee.AddNewEmployeeMaster did not return the expecte" +
                            "d value.");
        }
Example #7
0
 public void AddNewEmployeeMasterTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     FormViewParameter Parameter = new FormViewParameter();
     IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable dt = new  IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable();
     DataRow dr = dt.NewRow();
     dr["EmployeeId"] = new Guid();
     dr["EmployeeNo"] = "234";
     dr["FirstName"] = "PRADEEP";
     dr["MiddleName"] ="sahu";
     dr["LastName"] = "NITHYANAND";
     dr["PostalAddress"] = "SSSSSSSSSSS";
     dr["PermanentAddress"] = "FFFFFFFFF";
     dr["DateOfBirth"] = DateTime.Now;
     dr["FatherName"] = "BANGALORE";
     dr["Height"] = 12;
     dr["VisibleMarks"] = 5;
     dr["OfficeID"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
     dr["DepartmentID"] = new Guid("8971ce62-34a8-4175-9e1f-8d4bcc1721a1");
     dr["DesignationID"] = new Guid("7c83e591-a861-4b4f-bd1d-12f99cc32123");
     dr["Salary"] = 200;
     dr["Allowances"] = 200;
     dr["StartDate"] = DateTime.Now;
     dr["CreatedBy"] = "RAJA";
     dt.Rows.Add(dr);
     Parameter.Values = dt.Rows[0];
     DataTable dtQualification = new DataTable();
     dtQualification.Columns.Add("QualificationID", typeof(Guid));
     dtQualification.Columns.Add("Details", typeof(string));
     DataRow drQualification;
     drQualification = dtQualification.NewRow();
     drQualification["QualificationID"] = new Guid("5e48e449-fb3f-4352-9e11-080c91329566");
     drQualification["Details"] = "gsgssgsgs";
     dtQualification.Rows.Add(drQualification);
     Assert.AreEqual(true, target.AddNewEmployeeMaster(Parameter, dtQualification), "IGRSS.BusinessLogicLayer.Employee.AddNewEmployeeMaster did not return the expecte" +
             "d value.");
 }
Example #8
0
 public void GetQualificationMasterDetailsTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     Assert.IsInstanceOfType(target.GetQualificationMasterDetails(), typeof(IGRSS.DataAccessLayer.Employee.QualificationMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
                             "expected value.");
 }
Example #9
0
 public void GetQualificationMasterDetailsTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     Assert.IsInstanceOfType(target.GetQualificationMasterDetails(), typeof(IGRSS.DataAccessLayer.Employee.QualificationMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
            "expected value.");
 }
Example #10
0
 public void GetEmployeeDetailsByIdTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     Guid EmployeeID = new Guid("1947a43e-631b-40d1-9bb4-108659380653"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetEmployeeDetailsById(EmployeeID), typeof(IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
            "expected value.");
 }
Example #11
0
 public void GetEmployeeDetailsByEmpNoTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     string EmployeeNo ="321322"; // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetEmployeeDetailsByEmpNo(EmployeeNo), typeof(IGRSS.DataAccessLayer.Employee.EmployeeMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
            "expected value.");
 }
Example #12
0
 public void GetDesignationMasterDetailsByIdTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     Guid DesignationID = new Guid("3c1c2323-c442-46ec-830c-90229d02ab1c"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetDesignationMasterDetails(), typeof(IGRSS.DataAccessLayer.Employee.DesignationMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
            "expected value.");
 }
Example #13
0
 public void GetDepartmentMasterDetailsByDepartmentIdTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     Guid DepartmentId = new Guid("1ce959b5-27e2-489b-9d9e-3ef09110b66c");
     Assert.IsInstanceOfType(target.GetDepartmentMasterDetails(), typeof(IGRSS.DataAccessLayer.Employee.DepartmentMasterDataTable), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
             "expected value.");
 }
Example #14
0
 public void DeleteEmployeeQualificationTest()
 {
     IGRSS.BusinessLogicLayer.Employee target = new IGRSS.BusinessLogicLayer.Employee();
     Guid EmployeeQualiID = new Guid("306f4565-db8e-4351-ac7d-0599b8f245f1"); // TODO: Initialize to an appropriate value
     Assert.AreEqual(true,target.DeleteEmployeeQualification(EmployeeQualiID), "IGRSS.BusinessLogicLayer.Employee.DeleteEmployeeQualification did not return the " +
             "expected value.");
 }