Skip to content

Commit c94e3b3

Browse files
committed
rename methods
1 parent 5fae4db commit c94e3b3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

benchmark/Microsoft.IdentityModel.Benchmarks/CreateTokenTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Setup()
2626
}
2727

2828
[Benchmark]
29-
public string CreateToken() => jsonWebTokenHandler.CreateToken(tokenDescriptor);
29+
public string CreateJsonWebToken() => jsonWebTokenHandler.CreateToken(tokenDescriptor);
3030

3131
}
3232
}

benchmark/Microsoft.IdentityModel.Benchmarks/ValidateTokenAsyncTests.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ public void Setup()
3838
};
3939
}
4040

41-
[GlobalSetup(Targets = new[] { nameof(JsonWebTokenHandler) })]
41+
[GlobalSetup(Targets = new[] { nameof(ValidateJsonWebTokenAsync) })]
4242
public void JsonWebTokenSetup()
4343
{
4444
jsonWebTokenHandler = new JsonWebTokenHandler();
4545
}
4646

4747
[Benchmark]
48-
public async Task<TokenValidationResult> JsonWebTokenHandler() => await jsonWebTokenHandler.ValidateTokenAsync(jsonWebToken, validationParameters).ConfigureAwait(false);
48+
public async Task<TokenValidationResult> ValidateJsonWebTokenAsync() => await jsonWebTokenHandler.ValidateTokenAsync(jsonWebToken, validationParameters).ConfigureAwait(false);
4949

50-
[GlobalSetup(Targets = new[] { nameof(JwtSecurityTokenHandler) })]
50+
[GlobalSetup(Targets = new[] { nameof(ValidateJwtSecurityTokenAsync) })]
5151
public void JwtSecurityTokenSetup()
5252
{
5353
jwtSecurityTokenHandler = new JwtSecurityTokenHandler();
5454
}
5555

5656
[Benchmark]
57-
public async Task<TokenValidationResult> JwtSecurityTokenHandler() => await jwtSecurityTokenHandler.ValidateTokenAsync(jsonWebToken, validationParameters).ConfigureAwait(false);
57+
public async Task<TokenValidationResult> ValidateJwtSecurityTokenAsync() => await jwtSecurityTokenHandler.ValidateTokenAsync(jsonWebToken, validationParameters).ConfigureAwait(false);
5858

5959
}
6060
}

0 commit comments

Comments
 (0)