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