Skip to content

Commit b0905e5

Browse files
committed
Fix messages
1 parent 0965199 commit b0905e5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/Ocelot.UnitTests/Infrastructure/RoleAuthorizerTests.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace Ocelot.UnitTests.Infrastructure
1313
{
1414
public class RoleAuthorizerTests
1515
{
16-
private RolesAuthorizer _authorizer;
17-
public Mock<IClaimsParser> _parser;
16+
private readonly RolesAuthorizer _authorizer;
17+
private readonly Mock<IClaimsParser> _parser;
1818
private ClaimsPrincipal _principal;
1919
private List<string> _requiredRole;
2020
private Response<bool> _result;
@@ -26,7 +26,7 @@ public RoleAuthorizerTests()
2626
}
2727

2828
[Fact]
29-
public void should_return_ok_if_no_allowed_scopes()
29+
public void Should_return_ok_if_no_allowed_scopes()
3030
{
3131
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
3232
.And(_ => GivenTheFollowing(new List<string>()))
@@ -36,7 +36,7 @@ public void should_return_ok_if_no_allowed_scopes()
3636
}
3737

3838
[Fact]
39-
public void should_return_ok_if_null_allowed_scopes()
39+
public void Should_return_ok_if_null_allowed_scopes()
4040
{
4141
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
4242
.And(_ => GivenTheFollowing((List<string>)null))
@@ -46,7 +46,7 @@ public void should_return_ok_if_null_allowed_scopes()
4646
}
4747

4848
[Fact]
49-
public void should_return_error_if_claims_parser_returns_error()
49+
public void Should_return_error_if_claims_parser_returns_error()
5050
{
5151
var fakeError = new FakeError();
5252
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
@@ -58,7 +58,7 @@ public void should_return_error_if_claims_parser_returns_error()
5858
}
5959

6060
[Fact]
61-
public void should_match_role_and_return_ok_result()
61+
public void Should_match_role_and_return_ok_result()
6262
{
6363
var claimsPrincipal = new ClaimsPrincipal();
6464
var requiredRole = new List<string>() { "someRole" };
@@ -72,7 +72,7 @@ public void should_match_role_and_return_ok_result()
7272
}
7373

7474
[Fact]
75-
public void should_not_match_role_and_return_error_result()
75+
public void Should_not_match_role_and_return_error_result()
7676
{
7777
var fakeError = new FakeError();
7878
var claimsPrincipal = new ClaimsPrincipal();

0 commit comments

Comments
 (0)