コード例 #1
0
        public async Task AssertValidateAsyncIsUsed()
        {
            var token = new CancellationToken();

            await validationPipelineBehavior.Handle(requestMock, token, nextMock);

            await validatorMock.Received().ValidateAsync(Arg.Any <ValidationContext <IRequestTest> >(), token);
        }