public static CheckoutRow MakeFake(GDID gdid) { var ch = new CheckoutRow() { ID = gdid, FileName = "myface_" + gdid.ID.ToString(), Date = DateTime.Now, StartOffset = gdid.ID * 20, G_Block = gdid, Address1 = NFX.Parsing.NaturalTextGenerator.Generate(50), Address2 = (gdid.ID % 7) == 0 ? NFX.Parsing.NaturalTextGenerator.Generate(50) : null }; var chCnt = (int)(gdid.ID % 10); ch.Charges = new ChargeRow[chCnt]; for (int i = 0; i < chCnt; i++) { ch.Charges[i] = ChargeRow.MakeFake(gdid); } return(ch); }
public static CheckoutRow MakeFake(GDID gdid) { var ch = new CheckoutRow() { ID = gdid, FileName = "myface_" + gdid.ID.ToString(), Date = DateTime.Now, StartOffset = gdid.ID * 20, G_Block = gdid, Address1 = NFX.Parsing.NaturalTextGenerator.Generate(50), Address2 = (gdid.ID % 7) == 0 ? NFX.Parsing.NaturalTextGenerator.Generate(50) : null }; var chCnt = (int)(gdid.ID % 10); ch.Charges = new Charge[chCnt]; for (int i = 0; i < chCnt; i++) ch.Charges[i] = Charge.MakeFake(gdid); return ch; }