public void AddEntry(string line) { var entry = new InvoiceEntry(); if (!entry.PopulateObject(line.Split(',').Select(x=>x.Trim()).ToArray())) this.IsSuccess = false; this.Entries.Add(entry); }
public void SetUp() { this.entry = new InvoiceEntry(); this.correctInput = new[] {"1", "D123", "05-01-2012", "1000"}; }