Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mocking ADAL for Unit Tests
public interface IAuthenticationContextWrapper : IDisposable
{
AuthenticationContext Context { get; }
string Authority { get; }
bool ValidateAuthority { get; }
...
Task<IDeviceCodeResultWrapper> AcquireDeviceCodeAsync(string resource, string clientId);
...
Task<IAuthenticationResultWrapper> AcquireTokenAsync(string resource, string clientId, UserCredential userCredential);
...
Task<IAuthenticationResultWrapper> AcquireTokenAsync(string resource, ClientCredential clientCredential);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment