public async Task AssertValidateAsyncIsUsed() { var token = new CancellationToken(); await validationPipelineBehavior.Handle(requestMock, token, nextMock); await validatorMock.Received().ValidateAsync(Arg.Any <ValidationContext <IRequestTest> >(), token); }