示例#1
0
        public async Task GetTransfersInProgressAsync_FetchOnlyOperations_OfTokensTransferType()
        {
            var sut = await CreateSutInstanceAsync(
                "read_transfers__operation_type_condition_check__database",
                (repo, requestsRepo) => SeedFor.GetTransfersInProgressAsync_OperationTypeConditionCheck(repo, requestsRepo, _executorClient));

            var transferOperations = await sut.GetTransfersInProgressAsync(FakeWalletAddress);

            Assert.All(transferOperations, x => Assert.Equal(OperationType.TokensTransfer, x.Type));
        }
示例#2
0
        public async Task GetTransfersInProgressAsync_FetchOnlyOperations_InAcceptedStatus()
        {
            var sut = await CreateSutInstanceAsync(
                "read_transfers__accepted_status_only_condition_check__database",
                (repo, requestsRepo) => SeedFor.GetTransfersInProgressAsync_OperationStatusConditionCheck(repo, requestsRepo, _executorClient));

            var transferOperations = await sut.GetTransfersInProgressAsync(FakeWalletAddress);

            Assert.All(transferOperations, x => Assert.Equal(OperationStatus.Accepted, x.Status));
        }
示例#3
0
        public async Task GetTransfersInProgressAsync_FetchOnlyOperations_Related_To_MasterWalletAddress()
        {
            var sut = await CreateSutInstanceAsync(
                "read_transfers__master_wallet_address_condition_check__database",
                (repo, requestsRepo) => SeedFor.GetTransfersInProgressAsync_WalletAddressConditionCheck(repo, requestsRepo, _executorClient, FakeWalletAddress));

            var transferOperations = await sut.GetTransfersInProgressAsync(FakeWalletAddress);

            Assert.All(transferOperations, x => Assert.Equal(FakeWalletAddress, x.MasterWalletAddress));
        }