diff --git a/src/AdminConsole/AdminConsole.csproj b/src/AdminConsole/AdminConsole.csproj index 6dbbcbc1e..7fea149ef 100644 --- a/src/AdminConsole/AdminConsole.csproj +++ b/src/AdminConsole/AdminConsole.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj index 33628e6bf..be4462e97 100644 --- a/src/Api/Api.csproj +++ b/src/Api/Api.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Common/Common.csproj b/src/Common/Common.csproj index fc936728a..91ca0a4aa 100644 --- a/src/Common/Common.csproj +++ b/src/Common/Common.csproj @@ -14,11 +14,11 @@ - + - + diff --git a/tests/AdminConsole.Tests/AdminConsole.Tests.csproj b/tests/AdminConsole.Tests/AdminConsole.Tests.csproj index 0541004cd..5a31841e6 100644 --- a/tests/AdminConsole.Tests/AdminConsole.Tests.csproj +++ b/tests/AdminConsole.Tests/AdminConsole.Tests.csproj @@ -3,11 +3,11 @@ - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/AdminConsole.Tests/Components/Pages/App/Settings/SettingsComponents/CreateApiKeyComponentTests.cs b/tests/AdminConsole.Tests/Components/Pages/App/Settings/SettingsComponents/CreateApiKeyComponentTests.cs index 84b883afc..c1d297ff0 100644 --- a/tests/AdminConsole.Tests/Components/Pages/App/Settings/SettingsComponents/CreateApiKeyComponentTests.cs +++ b/tests/AdminConsole.Tests/Components/Pages/App/Settings/SettingsComponents/CreateApiKeyComponentTests.cs @@ -51,7 +51,7 @@ public void CreateApiKeyComponent_Renders_ExpectedScopes() // Assert var forms = cut.FindAll("form"); - Assert.Equal(1, forms.Count); + Assert.Single(forms); var form = forms[0]; var scopeDivs = form.Children.Where(controlGroup => controlGroup.NodeName == "DIV" && controlGroup.Children.Any(control => control.NodeName == "INPUT")).ToList(); diff --git a/tests/Api.IntegrationTests/Api.IntegrationTests.csproj b/tests/Api.IntegrationTests/Api.IntegrationTests.csproj index e5442de0e..6ef016ac1 100644 --- a/tests/Api.IntegrationTests/Api.IntegrationTests.csproj +++ b/tests/Api.IntegrationTests/Api.IntegrationTests.csproj @@ -2,19 +2,19 @@ - - - - - - - - - + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Api.IntegrationTests/Endpoints/Register/RegisterTokenTests.cs b/tests/Api.IntegrationTests/Endpoints/Register/RegisterTokenTests.cs index ecb90091d..cbaef234a 100644 --- a/tests/Api.IntegrationTests/Endpoints/Register/RegisterTokenTests.cs +++ b/tests/Api.IntegrationTests/Endpoints/Register/RegisterTokenTests.cs @@ -39,7 +39,7 @@ public async Task UserIdAndDisplayNameIsTheOnlyRequiredProperties() [Theory] [InlineData(null)] [InlineData("")] - public async Task InvalidUserIdReturnsError(string userid) + public async Task InvalidUserIdReturnsError(string? userid) { // Arrange Faker registerTokenGenerator = new Faker(); @@ -74,7 +74,7 @@ public async Task InvalidUserIdReturnsError(string userid) [Theory] [InlineData(null)] [InlineData("")] - public async Task InvalidUsernameReturnsError(string input) + public async Task InvalidUsernameReturnsError(string? input) { // Arrange Faker registerTokenGenerator = new Faker(); diff --git a/tests/Api.Tests/Api.Tests.csproj b/tests/Api.Tests/Api.Tests.csproj index 2bc5ba00a..3c49d7cd8 100644 --- a/tests/Api.Tests/Api.Tests.csproj +++ b/tests/Api.Tests/Api.Tests.csproj @@ -2,11 +2,11 @@ - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Common.Tests/Common.Tests.csproj b/tests/Common.Tests/Common.Tests.csproj index 3ce68bf07..5ee734dd9 100644 --- a/tests/Common.Tests/Common.Tests.csproj +++ b/tests/Common.Tests/Common.Tests.csproj @@ -2,11 +2,11 @@ - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Service.Tests/Service.Tests.csproj b/tests/Service.Tests/Service.Tests.csproj index 196ca364c..2df7519c2 100644 --- a/tests/Service.Tests/Service.Tests.csproj +++ b/tests/Service.Tests/Service.Tests.csproj @@ -2,12 +2,12 @@ - - - - - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all