public void NewLicenseApplicationTest() { IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication(); FormViewParameter Parameter = new FormViewParameter(); IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable dt = new IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable(); DataRow dr = dt.NewRow(); dr["LicenseApplicationId"] = new Guid(); dr["NameOfApplicant"] = "MADHUSMINA"; dr["PresentAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["PermanentAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["DateOfBirth"] = DateTime.Now; dr["Qualification"] = "BSC"; dr["Experience"] = 5; dr["Caste"] = "obc"; dr["BusinessAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["TotalInvestmentAmount"] = 500; dr["NameAndAddressOfReferer"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["SubmissionOfficeId"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf"); dr["ApplnNumber"] = "500"; dr["HomePhone"] = 9886439408; dr["Remarks"] = "hai how r u"; dt.Rows.Add(dr); Parameter.Values = dt.Rows[0]; bool expected = true; Assert.AreEqual(expected, target.NewLicenseApplication(Parameter), "IGRSS.BusinessLogicLayer.LicenseApplication.NewLicenseApplication did not return " + "the expected value."); }
public void NewLicenseApplicationTest() { IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication(); FormViewParameter Parameter = new FormViewParameter(); IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable dt = new IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable(); DataRow dr = dt.NewRow(); dr["LicenseApplicationId"] = new Guid(); dr["NameOfApplicant"] = "MADHUSMINA"; dr["PresentAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["PermanentAddress"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["DateOfBirth"] = DateTime.Now; dr["Qualification"] = "BSC"; dr["Experience"] =5; dr["Caste"] = "obc"; dr["BusinessAddress"] ="NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["TotalInvestmentAmount"] = 500; dr["NameAndAddressOfReferer"] = "NAYA MUNDA WARD JAGDALPUR BASTAR"; dr["SubmissionOfficeId"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf"); dr["ApplnNumber"] = "500"; dr["HomePhone"] = 9886439408; dr["Remarks"] = "hai how r u"; dt.Rows.Add(dr); Parameter.Values = dt.Rows[0]; bool expected = true; Assert.AreEqual(expected,target.NewLicenseApplication(Parameter), "IGRSS.BusinessLogicLayer.LicenseApplication.NewLicenseApplication did not return " + "the expected value."); }