Skip to content

Commit

Permalink
Switch to expression bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
zysim committed Sep 17, 2024
1 parent 7f40e2e commit 526b1c8
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions LeaderboardBackend.Test/Fixtures/IntegrationTestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,10 @@ public abstract class IntegrationTestsBase
protected static readonly TestApiFactory _factory = new();

[OneTimeSetUp]
public void OneTimeSetup()
{
_factory.InitializeDatabase();
}
public void OneTimeSetup() => _factory.InitializeDatabase();

[SetUp]
public void SetUp()
{
Client = _factory.CreateClient();
}
public void SetUp() => Client = _factory.CreateClient();

protected void SetClientBearer(string token)
{
Client.DefaultRequestHeaders.Authorization = new(JwtBearerDefaults.AuthenticationScheme, token);
}
protected void SetClientBearer(string token) => Client.DefaultRequestHeaders.Authorization = new(JwtBearerDefaults.AuthenticationScheme, token);
}

0 comments on commit 526b1c8

Please sign in to comment.