@@ -67,8 +67,8 @@ public void ShouldRequestTokenWhenGettingPasswordOrValidUntilForFirstTimeAccess(
6767 {
6868 IToken firstToken = newToken ( "the_access_token" , "the_refresh_token" , TimeSpan . FromSeconds ( 1 ) ) ;
6969 _oAuth2Client . Setup ( p => p . RequestToken ( ) ) . Returns ( firstToken ) ;
70- Assert . Equal ( firstToken . AccessToken , _provider . Password ) ;
71- Assert . Equal ( firstToken . ExpiresIn , _provider . ValidUntil . Value ) ;
70+ Assert . Equal ( _provider . Password , firstToken . AccessToken ) ;
71+ Assert . Equal ( _provider . ValidUntil . Value , firstToken . ExpiresIn ) ;
7272 }
7373
7474 [ Fact ]
@@ -78,15 +78,15 @@ public void ShouldRefreshTokenUsingRefreshTokenWhenAvailable()
7878 IToken refreshedToken = newToken ( "the_access_token2" , "the_refresh_token_2" , TimeSpan . FromSeconds ( 60 ) ) ;
7979 _oAuth2Client . Setup ( p => p . RequestToken ( ) ) . Returns ( firstToken ) ;
8080 _provider . Refresh ( ) ;
81- Assert . Equal ( firstToken . AccessToken , _provider . Password ) ;
82- Assert . Equal ( firstToken . ExpiresIn , _provider . ValidUntil . Value ) ;
81+ Assert . Equal ( _provider . Password , firstToken . AccessToken ) ;
82+ Assert . Equal ( _provider . ValidUntil . Value , firstToken . ExpiresIn ) ;
8383 _oAuth2Client . Reset ( ) ;
8484 System . Threading . Thread . Sleep ( 1000 ) ;
8585
8686 _oAuth2Client . Setup ( p => p . RefreshToken ( firstToken ) ) . Returns ( refreshedToken ) ;
8787 _provider . Refresh ( ) ;
88- Assert . Equal ( refreshedToken . AccessToken , _provider . Password ) ;
89- Assert . Equal ( refreshedToken . ExpiresIn , _provider . ValidUntil . Value ) ;
88+ Assert . Equal ( _provider . Password , refreshedToken . AccessToken ) ;
89+ Assert . Equal ( _provider . ValidUntil . Value , refreshedToken . ExpiresIn ) ;
9090
9191 }
9292
@@ -99,12 +99,12 @@ public void ShouldRequestTokenWhenRefreshTokenNotAvailable()
9999 . Returns ( firstToken )
100100 . Returns ( refreshedToken ) ;
101101 _provider . Refresh ( ) ;
102- Assert . Equal ( firstToken . AccessToken , _provider . Password ) ;
103- Assert . Equal ( firstToken . ExpiresIn , _provider . ValidUntil . Value ) ;
102+ Assert . Equal ( _provider . Password , firstToken . AccessToken ) ;
103+ Assert . Equal ( _provider . ValidUntil . Value , firstToken . ExpiresIn ) ;
104104
105105 _provider . Refresh ( ) ;
106- Assert . Equal ( refreshedToken . AccessToken , _provider . Password ) ;
107- Assert . Equal ( refreshedToken . ExpiresIn , _provider . ValidUntil . Value ) ;
106+ Assert . Equal ( _provider . Password , refreshedToken . AccessToken ) ;
107+ Assert . Equal ( _provider . ValidUntil . Value , refreshedToken . ExpiresIn ) ;
108108 Mock . Verify ( _oAuth2Client ) ;
109109 }
110110
0 commit comments