From b0905e5d6782860d1e5a39a701d26d5bd9adf532 Mon Sep 17 00:00:00 2001 From: raman-m Date: Wed, 23 Aug 2023 18:00:43 +0300 Subject: [PATCH] Fix messages --- .../Infrastructure/RoleAuthorizerTests.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/Ocelot.UnitTests/Infrastructure/RoleAuthorizerTests.cs b/test/Ocelot.UnitTests/Infrastructure/RoleAuthorizerTests.cs index d787021050..8dd6db9d00 100644 --- a/test/Ocelot.UnitTests/Infrastructure/RoleAuthorizerTests.cs +++ b/test/Ocelot.UnitTests/Infrastructure/RoleAuthorizerTests.cs @@ -13,8 +13,8 @@ namespace Ocelot.UnitTests.Infrastructure { public class RoleAuthorizerTests { - private RolesAuthorizer _authorizer; - public Mock _parser; + private readonly RolesAuthorizer _authorizer; + private readonly Mock _parser; private ClaimsPrincipal _principal; private List _requiredRole; private Response _result; @@ -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())) @@ -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)null)) @@ -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())) @@ -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() { "someRole" }; @@ -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();