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); }
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); }
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); }