Moq does not contain a definition for ReturnAsync?

The generic argument being used does not match the arguments of the member being mocked.

Remove the generic argument

VeracrossMock
    .Setup(_ => _.GetStudentsAsync(1, null, CancellationToken.None))
    .ReturnsAsync(resp);

and the method will infer the desired generic arguments based on the member being mocked.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)