Azure.Identity.IdentityModelFactory
Model factory that enables mocking for the Azure Identity library.
public static AuthenticationRecord AuthenticationRecord(string username, string authority, string homeAccountId, string tenantId, string clientId)
Initializes a new instance of the AuthenticationRecord class for mocking purposes.
public static DeviceCodeInfo DeviceCodeInfo(string userCode, string deviceCode, Uri verificationUri, DateTimeOffset expiresOn, string message, string clientId, IReadOnlyCollection<string> scopes)
Initializes a new instance of the DeviceCodeInfo class for mocking purposes.