public async Task ClientShouldGetTokenNftType()
        {
            // Arrange
            var getNftRequest = new GetTokenNftTypeServiceRequest {
                TokenId = 3
            };

            // Act
            GetTokenNftTypeServiceResponse response = await Mediator.Send(getNftRequest);

            //Assert
            response.TokensNftType.ShouldBe((uint)4);
        }
예제 #2
0
        public async Task <GetTokenNftTypeSharedResponse> Handle
        (
            GetTokenNftTypeSharedRequest aGetTokenNftTypeSharedRequest,
            CancellationToken aCancellationToken
        )
        {
            var aNftRequest = new GetTokenNftTypeServiceRequest {
                TokenId = aGetTokenNftTypeSharedRequest.TokenId
            };

            GetTokenNftTypeServiceResponse response = await Mediator.Send(aNftRequest);

            return(new GetTokenNftTypeSharedResponse(new System.Guid())
            {
                NftId = response.NftId
            });
        }