aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs
diff options
context:
space:
mode:
authorBen Magee <ben@bmagee.com>2019-12-22 22:36:11 +0000
committerBen Magee <ben@bmagee.com>2019-12-22 22:36:11 +0000
commit8c4e679ff4c78e5361d14f151bf4d40b2312478c (patch)
treeca610af117ea5f99ea9126c00d716b8abe510783 /tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs
parentf47c7959af72a971d1b812194bf03098e671364f (diff)
PR style comments
Diffstat (limited to 'tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs')
-rw-r--r--tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs b/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs
index bd23ca869..f202f59e6 100644
--- a/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs
+++ b/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs
@@ -36,7 +36,12 @@ namespace Jellyfin.Api.Tests.Auth
public CustomAuthenticationHandlerTests()
{
- _fixture = new Fixture().Customize(new AutoMoqCustomization {ConfigureMembers = true});
+ var fixtureCustomizations = new AutoMoqCustomization
+ {
+ ConfigureMembers = true
+ };
+
+ _fixture = new Fixture().Customize(fixtureCustomizations);
AllowFixtureCircularDependencies();
_authServiceMock = _fixture.Freeze<Mock<IAuthService>>();
@@ -143,7 +148,7 @@ namespace Jellyfin.Api.Tests.Auth
Assert.Equal(_scheme.Name, authenticatedResult.Ticket.AuthenticationScheme);
}
- private User SetupUser(bool isAdmin=false)
+ private User SetupUser(bool isAdmin = false)
{
var user = _fixture.Create<User>();
user.Policy.IsAdministrator = isAdmin;