Skip to content

Commit 542ba50

Browse files
committed
cleanup tests
1 parent 822d97f commit 542ba50

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

test/KK.AspNetCore.EasyAuthAuthentication.Test/Services/EasyAuthWithHeaderServiceTest.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public void IfTheAuthorizationHeaderIsNotSetTheCanUseMethodMustReturnFalse(Type
6060
}
6161

6262
[Theory]
63-
[InlineData(typeof(EasyAuthAzureAdService), "aad", AuthTokenHeaderNames.AADIdToken)]
64-
[InlineData(typeof(EasyAuthTwitterService), "twitter", AuthTokenHeaderNames.TwitterAccessToken)]
65-
[InlineData(typeof(EasyAuthFacebookService), "facebook", AuthTokenHeaderNames.FacebookAccessToken)]
66-
[InlineData(typeof(EasyAuthGoogleService), "google", AuthTokenHeaderNames.GoogleIdToken)]
67-
[InlineData(typeof(EasyAuthMicrosoftService), "microsoftaccount", AuthTokenHeaderNames.MicrosoftAccessToken)]
68-
public void IfAValidJwtTokenIsInTheHeaderTheResultIsSuccsess(Type authServiceType, string idpName, string requiredHeader)
63+
[InlineData(typeof(EasyAuthAzureAdService))]
64+
[InlineData(typeof(EasyAuthTwitterService))]
65+
[InlineData(typeof(EasyAuthFacebookService))]
66+
[InlineData(typeof(EasyAuthGoogleService))]
67+
[InlineData(typeof(EasyAuthMicrosoftService))]
68+
public void IfAValidJwtTokenIsInTheHeaderTheResultIsSuccsess(Type authServiceType)
6969
{
7070
// Arrange
7171
var handler = this.CreateServiceInstance(authServiceType);
@@ -92,12 +92,12 @@ public void IfAValidJwtTokenIsInTheHeaderTheResultIsSuccsess(Type authServiceTyp
9292
}
9393

9494
[Theory]
95-
[InlineData(typeof(EasyAuthAzureAdService), "aad", AuthTokenHeaderNames.AADIdToken)]
96-
[InlineData(typeof(EasyAuthTwitterService), "twitter", AuthTokenHeaderNames.TwitterAccessToken)]
97-
[InlineData(typeof(EasyAuthFacebookService), "facebook", AuthTokenHeaderNames.FacebookAccessToken)]
98-
[InlineData(typeof(EasyAuthGoogleService), "google", AuthTokenHeaderNames.GoogleIdToken)]
99-
[InlineData(typeof(EasyAuthMicrosoftService), "microsoftaccount", AuthTokenHeaderNames.MicrosoftAccessToken)]
100-
public void IfACustomOptionsIsInTheHeaderTheResultIsSuccsess(Type authServiceType, string idpName, string requiredHeader)
95+
[InlineData(typeof(EasyAuthAzureAdService))]
96+
[InlineData(typeof(EasyAuthTwitterService))]
97+
[InlineData(typeof(EasyAuthFacebookService))]
98+
[InlineData(typeof(EasyAuthGoogleService))]
99+
[InlineData(typeof(EasyAuthMicrosoftService))]
100+
public void IfACustomOptionsIsInTheHeaderTheResultIsSuccsess(Type authServiceType)
101101
{
102102
// Arrange
103103
var handler = this.CreateServiceInstance(authServiceType);

0 commit comments

Comments
 (0)