public PrintableDataRow Create(string type) { var dataRow = new MyDataRow { Type = type, GrossPremium = "1", Comm = "1", Carrier = "1", PremiumTax = "1.22", MguFee = "1.25", NetPremium = "1000", }; return new PrintableDataRow(new DataSection(), dataRow); }
public void FieldsSet() { var rowString = @",,,,, 5000000 Excess Of 5000000,,,,2,228,390,0,0,150.71,0,11.3,4.51,11.3,,0,123.6"; var dataRow = new MyDataRow(rowString); Assert.AreEqual("5000000 Excess Of 5000000", dataRow.Type); Assert.AreEqual("2", dataRow.Tier); Assert.AreEqual("228", dataRow.Tier1Value); Assert.AreEqual("390", dataRow.Tier2Value); Assert.AreEqual("0", dataRow.Tier3Value); Assert.AreEqual("0", dataRow.Tier4Value); Assert.AreEqual("150.71", dataRow.GrossPremium); Assert.AreEqual("0", dataRow.Comm); Assert.AreEqual("11.3", dataRow.Carrier); Assert.AreEqual("4.51", dataRow.PremiumTax); Assert.AreEqual("11.3", dataRow.MguFee); Assert.AreEqual("123.6", dataRow.NetPremium); }