1 write to _testAuthorizationService
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeRouteViewTest.cs (1)
28
_testAuthorizationService
= new TestAuthorizationService();
8 references to _testAuthorizationService
Microsoft.AspNetCore.Components.Authorization.Tests (8)
AuthorizeRouteViewTest.cs (8)
33
serviceCollection.AddSingleton<IAuthorizationService>(
_testAuthorizationService
);
51
_testAuthorizationService
.NextResult = AuthorizationResult.Success();
87
_testAuthorizationService
.NextResult = AuthorizationResult.Success();
115
Assert.Collection(
_testAuthorizationService
.AuthorizeCalls, call =>
126
_testAuthorizationService
.NextResult = AuthorizationResult.Failed();
144
Assert.Collection(
_testAuthorizationService
.AuthorizeCalls, call =>
155
_testAuthorizationService
.NextResult = AuthorizationResult.Failed();
178
_testAuthorizationService
.NextResult = AuthorizationResult.Failed();