diff --git a/ProjectLighthouse.Tests/LighthouseTest.cs b/ProjectLighthouse.Tests/LighthouseTest.cs index f9225c16..4f635259 100644 --- a/ProjectLighthouse.Tests/LighthouseTest.cs +++ b/ProjectLighthouse.Tests/LighthouseTest.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Net.Http; using System.Threading.Tasks; @@ -8,6 +9,7 @@ using ProjectLighthouse.Serialization; using ProjectLighthouse.Types; namespace ProjectLighthouse.Tests { + [SuppressMessage("ReSharper", "UnusedMember.Global")] public class LighthouseTest { public readonly TestServer Server; public readonly HttpClient Client; diff --git a/ProjectLighthouse.Tests/Tests/MatchTests.cs b/ProjectLighthouse.Tests/Tests/MatchTests.cs index 731abab2..4d82e285 100644 --- a/ProjectLighthouse.Tests/Tests/MatchTests.cs +++ b/ProjectLighthouse.Tests/Tests/MatchTests.cs @@ -4,11 +4,10 @@ using System.Threading; using System.Threading.Tasks; using ProjectLighthouse.Types; using Xunit; -using Xunit.Abstractions; namespace ProjectLighthouse.Tests { public class MatchTests : LighthouseTest { - private static SemaphoreSlim semaphore = new(1, 1); + private static readonly SemaphoreSlim semaphore = new(1, 1); [DatabaseFact] public async Task ShouldReturnOk() { diff --git a/ProjectLighthouse/Database.cs b/ProjectLighthouse/Database.cs index 0cd18e70..80adc373 100644 --- a/ProjectLighthouse/Database.cs +++ b/ProjectLighthouse/Database.cs @@ -31,7 +31,7 @@ namespace ProjectLighthouse { this.Locations.Add(l); // add to table await this.SaveChangesAsync(); // saving to the database returns the id and sets it on this entity - user = new() { + user = new User { Username = username, LocationId = l.Id, Biography = username + " hasn't introduced themselves yet.", diff --git a/ProjectLighthouse/Helpers/HashHelper.cs b/ProjectLighthouse/Helpers/HashHelper.cs index d441d1c2..46e87e38 100644 --- a/ProjectLighthouse/Helpers/HashHelper.cs +++ b/ProjectLighthouse/Helpers/HashHelper.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Security.Cryptography; using System.Text; namespace ProjectLighthouse.Helpers { + [SuppressMessage("ReSharper", "UnusedMember.Global")] public static class HashHelper { // private static readonly SHA1 sha1 = SHA1.Create(); private static readonly SHA256 sha256 = SHA256.Create();