public TransactionSummaryBuilder(ITransactionStore transactionStore,
                                  IUsersStore usersStore,
                                  ITransactionsImporter transactionsImporter)
 {
     this.transactionStore     = transactionStore;
     this.usersStore           = usersStore;
     this.transactionsImporter = transactionsImporter;
 }
        public async Task ProxyTransactionsImporter_Import_TransactionsWithDifferentIds()
        {
            transactionsImporter = new ProxyTransactionImporter();
            IEnumerable <AccountTransaction> actualTransactions = await transactionsImporter.Import(string.Empty, new AccountTransactionColumnMap());

            Assert.IsTrue(actualTransactions.Count(t => t.AccountId == 1) > 0);
            Assert.IsTrue(actualTransactions.Count(t => t.AccountId == 2) > 0);
            Assert.IsTrue(actualTransactions.Count(t => t.AccountId == 3) > 0);
        }
示例#3
0
        private Account?activeAccount;  //The currently selected Account in the AccountsPane


        public TransactionsGridPresenter(ITransactionsGridView view,
                                         ITransactionsGridViewModel viewModel,
                                         IDataService dataService,
                                         INotificationService notificationService,
                                         ITransactionsImporter transactionsImporter) : base(view, viewModel)
        {
            this.view                 = view;
            this.viewModel            = viewModel;
            this.dataService          = dataService;
            this.notificationService  = notificationService;
            this.transactionsImporter = transactionsImporter;

            BindEvents();
            BindCommands();
        }
 public void Setup()
 {
     transactionsImporter = new TransactionsImporter();
 }
示例#5
0
 public ImportController(ITransactionsImporter transactionsImporter)
 {
     this.transactionsImporter = transactionsImporter;
 }