1414
1515using Microsoft . Azure . Commands . Common . Authentication ;
1616using Microsoft . Azure . Commands . Common . Authentication . Abstractions ;
17+ using Microsoft . Azure . Commands . Common . Authentication . Abstractions . Interfaces ;
1718using Microsoft . Azure . Commands . Common . Authentication . Models ;
1819using Microsoft . Azure . Commands . Profile ;
1920using Microsoft . Azure . Commands . Profile . Models ;
2829using Moq ;
2930
3031using System ;
32+ using System . Collections . Generic ;
3133using System . Linq ;
3234using System . Security ;
3335
@@ -49,7 +51,7 @@ public AccessTokenCmdletTests(ITestOutputHelper output)
4951 {
5052 TestExecutionHelpers . SetUpSessionAndProfile ( ) ;
5153 XunitTracingInterceptor . AddToContext ( new XunitTracingInterceptor ( output ) ) ;
52-
54+ AzureSession . Instance . RegisterComponent < AuthenticationTelemetry > ( AuthenticationTelemetry . Name , ( ) => new AuthenticationTelemetry ( ) ) ;
5355 var defaultContext = new AzureContext (
5456 new AzureSubscription ( )
5557 {
@@ -97,8 +99,7 @@ public void TestGetAccessTokenAsPlainText()
9799 It . IsAny < SecureString > ( ) ,
98100 It . IsAny < string > ( ) ,
99101 It . IsAny < Action < string > > ( ) ,
100- It . IsAny < IAzureTokenCache > ( ) ,
101- It . IsAny < string > ( ) ) ) . Returns ( new MockAccessToken
102+ It . IsAny < IDictionary < string , object > > ( ) ) ) . Returns ( new MockAccessToken
102103 {
103104 UserId = expected . UserId ,
104105 LoginType = LoginType . OrgId ,
@@ -146,8 +147,7 @@ public void TestGetAccessTokenAsSecureString()
146147 It . IsAny < SecureString > ( ) ,
147148 It . IsAny < string > ( ) ,
148149 It . IsAny < Action < string > > ( ) ,
149- It . IsAny < IAzureTokenCache > ( ) ,
150- It . IsAny < string > ( ) ) ) . Returns ( new MockAccessToken
150+ It . IsAny < IDictionary < string , object > > ( ) ) ) . Returns ( new MockAccessToken
151151 {
152152 UserId = expected . UserId ,
153153 LoginType = LoginType . OrgId ,
0 commit comments