Skip to content

Commit

Permalink
Fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Aug 23, 2023
1 parent 0965199 commit b0905e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/Ocelot.UnitTests/Infrastructure/RoleAuthorizerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace Ocelot.UnitTests.Infrastructure
{
public class RoleAuthorizerTests
{
private RolesAuthorizer _authorizer;
public Mock<IClaimsParser> _parser;
private readonly RolesAuthorizer _authorizer;
private readonly Mock<IClaimsParser> _parser;
private ClaimsPrincipal _principal;
private List<string> _requiredRole;
private Response<bool> _result;
Expand All @@ -26,7 +26,7 @@ public RoleAuthorizerTests()
}

[Fact]
public void should_return_ok_if_no_allowed_scopes()
public void Should_return_ok_if_no_allowed_scopes()
{
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
.And(_ => GivenTheFollowing(new List<string>()))
Expand All @@ -36,7 +36,7 @@ public void should_return_ok_if_no_allowed_scopes()
}

[Fact]
public void should_return_ok_if_null_allowed_scopes()
public void Should_return_ok_if_null_allowed_scopes()
{
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
.And(_ => GivenTheFollowing((List<string>)null))
Expand All @@ -46,7 +46,7 @@ public void should_return_ok_if_null_allowed_scopes()
}

[Fact]
public void should_return_error_if_claims_parser_returns_error()
public void Should_return_error_if_claims_parser_returns_error()
{
var fakeError = new FakeError();
this.Given(_ => GivenTheFollowing(new ClaimsPrincipal()))
Expand All @@ -58,7 +58,7 @@ public void should_return_error_if_claims_parser_returns_error()
}

[Fact]
public void should_match_role_and_return_ok_result()
public void Should_match_role_and_return_ok_result()
{
var claimsPrincipal = new ClaimsPrincipal();
var requiredRole = new List<string>() { "someRole" };
Expand All @@ -72,7 +72,7 @@ public void should_match_role_and_return_ok_result()
}

[Fact]
public void should_not_match_role_and_return_error_result()
public void Should_not_match_role_and_return_error_result()
{
var fakeError = new FakeError();
var claimsPrincipal = new ClaimsPrincipal();
Expand Down

0 comments on commit b0905e5

Please sign in to comment.