public void Create210() { DateTime testDate = DateTime.Now; var mInterchange = new MyInterchange(1, "01", "ABCCOM", "01", "999999999", true); var mGroup = mInterchange.CreateGroup(1, "IM", "006998397", "123456789"); var ediMessage = new X12_4010_210(1, "2509121213", "PP", testDate, 183.04M, "XXXX") { ShipMentID = "8000281336" }; ediMessage.Add_N9_ReferenceID("PO", "SM12003301"); ediMessage.Add_N9_ReferenceID("PO", "SM121231231"); ediMessage.Add_N9_ReferenceID("PO", "SM1asdasda1"); ediMessage.AddDeliveryDate(DateTime.Parse("08/01/2011"), "017"); ediMessage.Add_G62_Date("86", "20110801"); G_N1 gN1 = ediMessage.Add_N1_Name("CN", "AAA HARDWARE"); ediMessage.Add_N3_Address(gN1, "9805 POPLAR ST"); ediMessage.Add_N4_Geographic(gN1, "LEADVILLE", "CO", "80461"); gN1 = ediMessage.Add_N1_Name("SH", "BBB OIL COMPANY"); ediMessage.Add_N3_Address(gN1, "2361 S DIXIE HWY"); ediMessage.Add_N4_Geographic(gN1, "LIMA", "OH", "45802"); gN1 = ediMessage.Add_N1_Name("BT", "ANY PAY AGENT"); ediMessage.Add_N3_Address(gN1, "ATTN: DONNA SMITH", "PO BOX 16789"); ediMessage.Add_N4_Geographic(gN1, "ANYTOWN", "MO", "12345-6789"); G_LX gLx = ediMessage.Add_LX_Invoice_Line(1); ediMessage.Add_LX_L5_Description(gLx, 1, "PETROLEUM OILS,", "15525002", "N"); ediMessage.Add_LX_L0_Qty_Weight(gLx, 1, 138, "N", 1, "PLT", "L"); ediMessage.Add_LX_L1_Rate_Charges(gLx, 1, 1.20M, "PH", 183.04M); ediMessage.Add_LX_L7_Tarrif_Ref(gLx, 1, "0E60"); ediMessage.Add_LX_Invoice_Line(2); ediMessage.Add_L3_Totals(1.38M, "G", 183.04M, 1); mGroup.AddMessage(ediMessage.m210); mInterchange.SaveXml("Test210.xml"); mInterchange.SaveEdi("Test210.edi"); mInterchange.SaveEdi("Test210.txt", Environment.NewLine); }