public void AddInwardDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     FormViewParameter Parameter = new FormViewParameter();
     IGRSS.DataAccessLayer.InwardOutward.Inward_OutwardRegisterDataTable dt = new IGRSS.DataAccessLayer.InwardOutward.Inward_OutwardRegisterDataTable();
     DataRow dr = dt.NewRow();
     dr["Inward_outwardId"] = new Guid();
     dr["RegisterType"] = "I";
     dr["DocumentNo"] = "2221";
     dr["InOutDate"] =DateTime.Now;
     dr["DocType"] = new Guid("f21071c4-076b-4040-bf45-412889457dae");
     dr["SentOfficeID"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
     dr["ReceivingOfficeID"] =new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
     dr["DocumentSentFrom"] = "Chennai";
     dr["DocumentSentTo"] ="BANGALORE";
     dr["Description"] = "500";
     dr["StampValueAffixed"] = 20;
     dr["DeliveryType"] =new Guid("8d0413b8-75d9-4c46-9b0b-019b4dcb9253");
     dr["Remarks"] = "500";
     dr["CreatedBy"] ="RAJA";
     dt.Rows.Add(dr);
     Parameter.Values = dt.Rows[0];
     Assert.AreEqual(true,target.AddInwardDetails(Parameter), "IGRSS.BusinessLogicLayer.InwardOutward.AddInwardDetails did not return the expect" +
             "ed value.");
 }
Exemple #2
0
        public void AddInwardDetailsTest()
        {
            IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
            FormViewParameter Parameter = new FormViewParameter();

            IGRSS.DataAccessLayer.InwardOutward.Inward_OutwardRegisterDataTable dt = new IGRSS.DataAccessLayer.InwardOutward.Inward_OutwardRegisterDataTable();
            DataRow dr = dt.NewRow();

            dr["Inward_outwardId"]  = new Guid();
            dr["RegisterType"]      = "I";
            dr["DocumentNo"]        = "2221";
            dr["InOutDate"]         = DateTime.Now;
            dr["DocType"]           = new Guid("f21071c4-076b-4040-bf45-412889457dae");
            dr["SentOfficeID"]      = new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
            dr["ReceivingOfficeID"] = new Guid("916fd082-061a-45fb-91a4-33967243b4cf");
            dr["DocumentSentFrom"]  = "Chennai";
            dr["DocumentSentTo"]    = "BANGALORE";
            dr["Description"]       = "500";
            dr["StampValueAffixed"] = 20;
            dr["DeliveryType"]      = new Guid("8d0413b8-75d9-4c46-9b0b-019b4dcb9253");
            dr["Remarks"]           = "500";
            dr["CreatedBy"]         = "RAJA";
            dt.Rows.Add(dr);
            Parameter.Values = dt.Rows[0];
            Assert.AreEqual(true, target.AddInwardDetails(Parameter), "IGRSS.BusinessLogicLayer.InwardOutward.AddInwardDetails did not return the expect" +
                            "ed value.");
        }
Exemple #3
0
        public void DeleteStampDenomByStampDenomIdTest()
        {
            IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
            Guid StampDenomId = new Guid("00f8aa73-e0fa-48ab-af2f-9ee66a3735c6"); // TODO: Initialize to an appropriate valu

            Assert.AreEqual(true, target.DeleteStampDenomByStampDenomId(StampDenomId), "IGRSS.BusinessLogicLayer.InwardOutward.AddLeaveDetails did not return the expected value." +
                            "");
        }
Exemple #4
0
        public void GetPostalStampDenomByStampDenomIdTest()
        {
            IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
            Guid StampDenomId = new Guid("26fc0a6d-92ff-4bf7-b488-900098fb0715"); // TODO: Initialize to an appropriate value

            Assert.IsInstanceOfType(target.GetPostalStampDenomByStampDenomId(StampDenomId), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampDenomMasterDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetPostalStampDenomByStampDenomId did not " +
                                    "return the expected value.");
        }
Exemple #5
0
        public void GetInwardDetailsByInwardIdTest()
        {
            IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
            Guid Inward_outwardId = new Guid("c9f38a71-e8fe-4208-b3fc-05d07ccfd9e9"); // TODO: Initialize to an appropriate value

            Assert.AreEqual(true, target.GetInwardDetailsByInwardId(Inward_outwardId), "IGRSS.BusinessLogicLayer.InwardOutward.GetInwardDetailsByInwardId did not return " +
                            "the expected value.");
        }
 public void GetAllInwardDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetAllInwardDetails(),typeof(IGRSS.DataAccessLayer.InwardOutward.Inward_OutwardRegisterDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetAllInwardDetails did not return the exp" +
             "ected value.");
 }
Exemple #7
0
 public void GetPostalDeliveryLkpTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetPostalDeliveryLkp(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalDeliveryType_LKPDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetPostalDeliveryLkp did not return the ex" +
                             "pected value.");
 }
Exemple #8
0
 public void GetAllPostalStampRequestDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetAllPostalStampRequestDetails(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampPurchaseReqDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetAllPostalStampRequestDetails did not re" +
                             "turn the expected value.");
 }
Exemple #9
0
 public void GetDeliveryTypeTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetDeliveryType(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampPurchaseReqDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetDeliveryType did not return the expecte" +
                             "d value.");
 }
Exemple #10
0
 public void GetAllInwardDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetAllInwardDetails(), typeof(IGRSS.DataAccessLayer.InwardOutward.Inward_OutwardRegisterDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetAllInwardDetails did not return the exp" +
                             "ected value.");
 }
Exemple #11
0
 public void GetAllPostalStampDenomDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetAllPostalStampDenomDetails(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampDenomMasterDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetAllPostalStampDenomDetails did not retu" +
                             "rn the expected value.");
 }
Exemple #12
0
 public void DeleteStampDenomByStampDenomIdTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Guid StampDenomId = new Guid("00f8aa73-e0fa-48ab-af2f-9ee66a3735c6"); // TODO: Initialize to an appropriate valu
     Assert.AreEqual(true,target.DeleteStampDenomByStampDenomId(StampDenomId), "IGRSS.BusinessLogicLayer.InwardOutward.AddLeaveDetails did not return the expected value." +
             "");
 }
Exemple #13
0
 public void GetAllPostalStampDenomDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetAllPostalStampDenomDetails(),typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampDenomMasterDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetAllPostalStampDenomDetails did not retu" +
             "rn the expected value.");
 }
Exemple #14
0
 public void GetAllPostalStampRequestDetailsTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetAllPostalStampRequestDetails(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampPurchaseReqDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetAllPostalStampRequestDetails did not re" +
             "turn the expected value.");
 }
Exemple #15
0
 public void GetPostalStampDenomByStampDenomIdTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Guid StampDenomId = new Guid("26fc0a6d-92ff-4bf7-b488-900098fb0715"); // TODO: Initialize to an appropriate value
     Assert.IsInstanceOfType(target.GetPostalStampDenomByStampDenomId(StampDenomId),typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampDenomMasterDataTable),"IGRSS.BusinessLogicLayer.InwardOutward.GetPostalStampDenomByStampDenomId did not " +
             "return the expected value.");
 }
Exemple #16
0
 public void GetPostalDeliveryLkpTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetPostalDeliveryLkp(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalDeliveryType_LKPDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetPostalDeliveryLkp did not return the ex" +
             "pected value.");
 }
Exemple #17
0
 public void GetInwardDetailsByInwardIdTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Guid Inward_outwardId = new Guid("c9f38a71-e8fe-4208-b3fc-05d07ccfd9e9"); // TODO: Initialize to an appropriate value
     Assert.AreEqual(true,target.GetInwardDetailsByInwardId(Inward_outwardId), "IGRSS.BusinessLogicLayer.InwardOutward.GetInwardDetailsByInwardId did not return " +
            "the expected value.");
 }
Exemple #18
0
 public void GetDeliveryTypeTest()
 {
     IGRSS.BusinessLogicLayer.InwardOutward target = new IGRSS.BusinessLogicLayer.InwardOutward();
     Assert.IsInstanceOfType(target.GetDeliveryType(), typeof(IGRSS.DataAccessLayer.InwardOutward.PostalStampPurchaseReqDataTable), "IGRSS.BusinessLogicLayer.InwardOutward.GetDeliveryType did not return the expecte" +
             "d value.");
 }