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."); }
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."); }
public InwardTable GetAllInwardDetails(Guid Inward_outwardId) { InwardTable InvDt = new InwardTable(); try { InvDt = IgrssAdapters.InwardAdapter.GetAllInwardOutwardDetails(); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(InvDt); }
public InwardTable GetAllInwardDetails(Guid Inward_outwardId) { InwardTable InvDt = new InwardTable(); try { InvDt = IgrssAdapters.InwardAdapter.GetAllInwardOutwardDetails(); } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return InvDt; }