public async Task ShouldGetAllTokensUsingServerServices() { var request = new GetAllOwnedTokensServiceRequest() { TokenOwner = TestEthAccounts.TestEthAccountAddress }; GetAllOwnedTokensServiceResponse totalTokens = await Mediator.Send(request); totalTokens.TokenIdList.Count.ShouldBe(3); }
public async Task <GetAllOwnedTokensSharedResponse> Handle ( GetAllOwnedTokensSharedRequest aGetAllOwnedTokensSharedRequest, CancellationToken aCancellationToken ) { var aNftRequest = new GetAllOwnedTokensServiceRequest { TokenOwner = TestEthAccounts.TestEthAccountAddress }; GetAllOwnedTokensServiceResponse response = await Mediator.Send(aNftRequest); return(new GetAllOwnedTokensSharedResponse() { TokenIdList = response.TokenIdList }); }