Exemple #1
0
        public void ShowReportOnUI()
        {
            List <TransactionReport> reports = TestDataFactory.GetMonthReports();
            FormReportMain           form    = new FormReportMain(EventAggregator.Empty, null);

            form.ShowReports(reports);
            form.ShowDialog();
        }
Exemple #2
0
        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();
        }