@@ -13,8 +13,8 @@ namespace Ocelot.UnitTests.Infrastructure
13
13
{
14
14
public class RoleAuthorizerTests
15
15
{
16
- private RolesAuthorizer _authorizer ;
17
- public Mock < IClaimsParser > _parser ;
16
+ private readonly RolesAuthorizer _authorizer ;
17
+ private readonly Mock < IClaimsParser > _parser ;
18
18
private ClaimsPrincipal _principal ;
19
19
private List < string > _requiredRole ;
20
20
private Response < bool > _result ;
@@ -26,7 +26,7 @@ public RoleAuthorizerTests()
26
26
}
27
27
28
28
[ Fact ]
29
- public void should_return_ok_if_no_allowed_scopes ( )
29
+ public void Should_return_ok_if_no_allowed_scopes ( )
30
30
{
31
31
this . Given ( _ => GivenTheFollowing ( new ClaimsPrincipal ( ) ) )
32
32
. And ( _ => GivenTheFollowing ( new List < string > ( ) ) )
@@ -36,7 +36,7 @@ public void should_return_ok_if_no_allowed_scopes()
36
36
}
37
37
38
38
[ Fact ]
39
- public void should_return_ok_if_null_allowed_scopes ( )
39
+ public void Should_return_ok_if_null_allowed_scopes ( )
40
40
{
41
41
this . Given ( _ => GivenTheFollowing ( new ClaimsPrincipal ( ) ) )
42
42
. And ( _ => GivenTheFollowing ( ( List < string > ) null ) )
@@ -46,7 +46,7 @@ public void should_return_ok_if_null_allowed_scopes()
46
46
}
47
47
48
48
[ Fact ]
49
- public void should_return_error_if_claims_parser_returns_error ( )
49
+ public void Should_return_error_if_claims_parser_returns_error ( )
50
50
{
51
51
var fakeError = new FakeError ( ) ;
52
52
this . Given ( _ => GivenTheFollowing ( new ClaimsPrincipal ( ) ) )
@@ -58,7 +58,7 @@ public void should_return_error_if_claims_parser_returns_error()
58
58
}
59
59
60
60
[ Fact ]
61
- public void should_match_role_and_return_ok_result ( )
61
+ public void Should_match_role_and_return_ok_result ( )
62
62
{
63
63
var claimsPrincipal = new ClaimsPrincipal ( ) ;
64
64
var requiredRole = new List < string > ( ) { "someRole" } ;
@@ -72,7 +72,7 @@ public void should_match_role_and_return_ok_result()
72
72
}
73
73
74
74
[ Fact ]
75
- public void should_not_match_role_and_return_error_result ( )
75
+ public void Should_not_match_role_and_return_error_result ( )
76
76
{
77
77
var fakeError = new FakeError ( ) ;
78
78
var claimsPrincipal = new ClaimsPrincipal ( ) ;
0 commit comments