From ccc4c184c88a23aacba90a7c2df56c496e46b0d8 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Thu, 16 May 2024 05:29:52 +0300 Subject: [PATCH] Formatting fixes --- generator/CountriesGenerator.cs | 2 +- generator/LanguagesGenerator.cs | 2 +- .../SharedKey/ForbiddenContext.cs | 3 ++- src/Tingle.Extensions.Primitives/Continent.cs | 11 ++++++++++- .../TokenProtectorTests.cs | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/generator/CountriesGenerator.cs b/generator/CountriesGenerator.cs index 350676c1..c1664a89 100644 --- a/generator/CountriesGenerator.cs +++ b/generator/CountriesGenerator.cs @@ -3,7 +3,7 @@ namespace StaticDataGenerator; -internal class CountriesGenerator(IHostEnvironment environment, FileDownloader downloader) +internal class CountriesGenerator(IHostEnvironment environment, FileDownloader downloader) : AbstractGenerator>(environment, downloader, "countries-20200124.json") { internal struct CountryImpl diff --git a/generator/LanguagesGenerator.cs b/generator/LanguagesGenerator.cs index 9678d4c2..8ee55c83 100644 --- a/generator/LanguagesGenerator.cs +++ b/generator/LanguagesGenerator.cs @@ -3,7 +3,7 @@ namespace StaticDataGenerator; -internal partial class LanguagesGenerator(IHostEnvironment environment, FileDownloader downloader) +internal partial class LanguagesGenerator(IHostEnvironment environment, FileDownloader downloader) : AbstractGenerator>(environment, downloader, "iso-639-3.tab") { internal record struct LanguageImpl(string Name, string Part3, string? Part1, string Type, string Scope); diff --git a/src/Tingle.AspNetCore.Authentication/SharedKey/ForbiddenContext.cs b/src/Tingle.AspNetCore.Authentication/SharedKey/ForbiddenContext.cs index bab08fab..601bf8b7 100644 --- a/src/Tingle.AspNetCore.Authentication/SharedKey/ForbiddenContext.cs +++ b/src/Tingle.AspNetCore.Authentication/SharedKey/ForbiddenContext.cs @@ -10,4 +10,5 @@ namespace Tingle.AspNetCore.Authentication.SharedKey; /// /// public class ForbiddenContext(HttpContext context, AuthenticationScheme scheme, SharedKeyOptions options) - : ResultContext(context, scheme, options) { } + : ResultContext(context, scheme, options) +{ } diff --git a/src/Tingle.Extensions.Primitives/Continent.cs b/src/Tingle.Extensions.Primitives/Continent.cs index 706a0956..47e72632 100644 --- a/src/Tingle.Extensions.Primitives/Continent.cs +++ b/src/Tingle.Extensions.Primitives/Continent.cs @@ -29,7 +29,16 @@ public sealed class Continent : IEquatable, IComparable, I /// A list of known continents /// public static readonly Continent[] KnownContinents = [ - Asia, Europe, Americas, Africa, NorthAmerica, SouthAmerica, Antarctica, Oceania, Australia, Kenorland, + Asia, + Europe, + Americas, + Africa, + NorthAmerica, + SouthAmerica, + Antarctica, + Oceania, + Australia, + Kenorland, ]; /// diff --git a/tests/Tingle.AspNetCore.Tokens.Tests/TokenProtectorTests.cs b/tests/Tingle.AspNetCore.Tokens.Tests/TokenProtectorTests.cs index cf02c5e8..de4249e3 100644 --- a/tests/Tingle.AspNetCore.Tokens.Tests/TokenProtectorTests.cs +++ b/tests/Tingle.AspNetCore.Tokens.Tests/TokenProtectorTests.cs @@ -60,7 +60,7 @@ public void TimeLimited_Protection_Works_On_DataClass() AssertTimeLimitedValueEncryptDecrypt(d, expiration); var lifespan = TimeSpan.FromSeconds(60); - AssertTimeLimitedValueEncryptDecrypt( d, lifespan); + AssertTimeLimitedValueEncryptDecrypt(d, lifespan); } [Fact]