We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am writing UnitTest and want to Mock AuthBot. But as it extends IDialogContext, I am not sure what is the best way to Mock the service.
The text was updated successfully, but these errors were encountered:
Which one you guys prefer?
Sorry, something went wrong.
I decided to use Microsoft Fakes.
using (ShimsContext.Create()) { AuthBot.Fakes.ShimContextExtensions.GetAccessTokenIBotContextString = async (c, r) => { return "dummyToken"; }; // do the rest }
No branches or pull requests
I am writing UnitTest and want to Mock AuthBot. But as it extends IDialogContext, I am not sure what is the best way to Mock the service.
The text was updated successfully, but these errors were encountered: