コード例 #1
0
        public void GetLicenseApplicationsTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();

            Assert.IsInstanceOfType(target.GetLicenseApplications(), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                                    "urn the expected value.");
        }
コード例 #2
0
        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.");
        }
コード例 #3
0
        public void DeleteVendordetailTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            Guid LicenseApplicationId = new Guid("2065eefc-1a3e-44ff-9d7d-5a863ad23393"); // TODO: Initialize to an appropriate value

            Assert.AreEqual(true, target.DeleteVendordetail(LicenseApplicationId), "IGRSS.BusinessLogicLayer.LicenseApplication.ApprovedVendorLicense did not return " +
                     "the expected value.");
        }
コード例 #4
0
        public void GetVendordtlByLicenseNoTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            string LicenseNo = "com001";

            Assert.IsInstanceOfType(target.GetVendordtlByLicenseNo(LicenseNo), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                                    "urn the expected value.");
        }
コード例 #5
0
        public void GetVendordetailByVendorNameTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            string NameOfApplicant = "testing";

            Assert.IsInstanceOfType(target.GetVendordetailByVendorName(NameOfApplicant), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                                    "urn the expected value.");
        }
コード例 #6
0
        public void GetvendordetailByAppNumberTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            string ApplnNumber = "exam002";

            Assert.IsInstanceOfType(target.GetvendordetailByAppNumber(ApplnNumber), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                                    "urn the expected value.");
        }
コード例 #7
0
        public void GetlicenseAppBylicenseAppIDTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            Guid LicenseApplicationId = new Guid("07d0b00b-34f4-48d6-8107-055bd21f7ec9"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetCompleteLicenseDetails(LicenseApplicationId), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                                    "urn the expected value.");
        }
コード例 #8
0
        public void DeleteVendordetailTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            Guid LicenseApplicationId = new Guid("2065eefc-1a3e-44ff-9d7d-5a863ad23393"); // TODO: Initialize to an appropriate value

            Assert.AreEqual(true, target.DeleteVendordetail(LicenseApplicationId), "IGRSS.BusinessLogicLayer.LicenseApplication.ApprovedVendorLicense did not return " +
                            "the expected value.");
        }
コード例 #9
0
    protected void viewviewSignature_DataBound(object sender, EventArgs e)
    {
        if (mvSpicemenSig.ActiveViewIndex == 1)
        {
            if (viewviewSignature.CurrentMode == FormViewMode.Insert)
            {

                LicenseApplication app = new LicenseApplication();

                //Guid LicenseApplicationId = (Guid)fvfranklinDetail.DataKey["LicenseApplicationId"];

                Guid LicenseApplicationId = (Guid)gvRenewVendor.SelectedDataKey.Value;

                if (ViewState["SpicemenDetails"] == null)

                    ViewState["SpicemenDetails"] = app.GetSpicemendetailsByLicenseId(LicenseApplicationId);

                GridView grd = ((GridView)viewviewSignature.FindControl("gvSignatureDetails"));
                grd.DataSource = (DataTable)ViewState["SpicemenDetails"];
                GridView grdCurent = ((GridView)viewviewSignature.FindControl("gvCurrentAuthoritySignatry"));
                grdCurent.DataSource = (DataTable)ViewState["SpicemenDetails"];
                grd.DataBind();
                grdCurent.DataBind();
            }
        }
    }
コード例 #10
0
        public void GetCompleteLicenseDetailsTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            Guid LicenseApplicationId = new Guid("07d0b00b-34f4-48d6-8107-055bd21f7ec9"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetCompleteLicenseDetails(LicenseApplicationId), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                    "urn the expected value.");
        }
コード例 #11
0
        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.");
        }
コード例 #12
0
 public void GetVendordtlByLicenseNoTest()
 {
     IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
     string LicenseNo ="com001";
     Assert.IsInstanceOfType(target.GetVendordtlByLicenseNo(LicenseNo), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
             "urn the expected value.");
 }
コード例 #13
0
 public void GetVendordetailByVendorNameTest()
 {
     IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
     string NameOfApplicant ="testing";
     Assert.IsInstanceOfType(target.GetVendordetailByVendorName(NameOfApplicant), typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
             "urn the expected value.");
 }
コード例 #14
0
        public void GetvendordetailByAppNumberTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();
            string ApplnNumber ="exam002";

            Assert.IsInstanceOfType(target.GetvendordetailByAppNumber(ApplnNumber),typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                    "urn the expected value.");
        }
コード例 #15
0
        public void GetLicenseApplicationsTest()
        {
            IGRSS.BusinessLogicLayer.LicenseApplication target = new IGRSS.BusinessLogicLayer.LicenseApplication();

            Assert.IsInstanceOfType(target.GetLicenseApplications(),typeof(IGRSS.DataAccessLayer.LicenseApplication.LicenseApplicationDataTable), "IGRSS.BusinessLogicLayer.LicenseApplication.GetCompleteLicenseDetails did not ret" +
                    "urn the expected value.");
        }