Exemple #1
0
        public async Task InitializeAsync_displays_only_deposited_transactions_on_deposited_transactions_view()
        {
            _mockWalletController.GetTransactionsReturns(_transactions);
            TransactionsViewModel viewModel = CreateTransactionsViewModel();

            await viewModel.InitializeAsync(Constants.TRANSACTION_DEPOSITED);

            viewModel.Transactions.Should().HaveCount(1);
        }
Exemple #2
0
        public async Task InitializeAsync_displays_only_withdrawn_transactions_on_withdrawn_transactions_view()
        {
            _mockWalletController.GetTransactionsReturns(_transactions);
            TransactionsViewModel viewModel = CreateTransactionsViewModel();

            await viewModel.InitializeAsync(Constants.TRANSACTION_WITHDRAWN);

            viewModel.Transactions.Should().HaveCount(1);
        }
Exemple #3
0
        public async Task InitializeAsync_displays_all_transactions_on_all_transactions_view()
        {
            _mockWalletController.GetTransactionsReturns(_transactions);
            TransactionsViewModel viewModel = CreateTransactionsViewModel();

            await viewModel.InitializeAsync("");

            viewModel.Transactions.Should().HaveCount(2);
        }