public void ShowReportOnUI() { List <TransactionReport> reports = TestDataFactory.GetMonthReports(); FormReportMain form = new FormReportMain(EventAggregator.Empty, null); form.ShowReports(reports); form.ShowDialog(); }
public void ShowNoCategoryItemsOnUI() { List <TransactionReport> reports = TestDataFactory.GetMonthReports(); foreach (TransactionReport report in reports) { report.Transactions.RemoveWhere(t => t.Category.IsNotNull() && t.SubCategory.IsNotNull()); } FormReportMain form = new FormReportMain(EventAggregator.Empty, null); form.ShowReports(reports); form.ShowDialog(); }