From c513ab99537e828aeaada148e40fbbc10cd62ed4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:41:41 +0200 Subject: [PATCH] chore(ci): bump dailydevops/pipelines from 0.12.11 to 0.12.12 (#67) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(ci): bump dailydevops/pipelines from 0.12.11 to 0.12.12 Bumps [dailydevops/pipelines](https://github.com/dailydevops/pipelines) from 0.12.11 to 0.12.12. - [Release notes](https://github.com/dailydevops/pipelines/releases) - [Commits](https://github.com/dailydevops/pipelines/compare/0.12.11...0.12.12) --- updated-dependencies: - dependency-name: dailydevops/pipelines dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * style: updated formatting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Stühmer --- .github/workflows/cicd.yml | 2 +- .../Internals/FormularProviderTests.cs | 32 +++++++++---------- .../IServiceCollectionExtensionsTests.cs | 2 +- ...ormsSynchronizationContextProviderTests.cs | 24 +++++++------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index bcacc52..79f8b39 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -21,7 +21,7 @@ on: jobs: all: name: Build & Tests - uses: dailydevops/pipelines/.github/workflows/cicd-dotnet.yml@0.12.11 + uses: dailydevops/pipelines/.github/workflows/cicd-dotnet.yml@0.12.12 with: enableSonarQube: true dotnet-logging: ${{ inputs.dotnet-logging }} diff --git a/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/FormularProviderTests.cs b/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/FormularProviderTests.cs index 70c2f84..03d9102 100644 --- a/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/FormularProviderTests.cs +++ b/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/FormularProviderTests.cs @@ -18,7 +18,7 @@ public void GetFormular_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -37,7 +37,7 @@ public void GetFormular_InvalidForm_ThrowsInvalidOperationException() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -55,7 +55,7 @@ public async Task GetFormularAsync_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -74,7 +74,7 @@ public async Task GetFormularAsync_InvalidForm_ThrowsInvalidOperationException() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -92,7 +92,7 @@ public void GetScopedForm_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -111,7 +111,7 @@ public void GetScopedForm_InvalidForm_ThrowsInvalidOperationException() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -129,7 +129,7 @@ public async Task GetScopedFormAsync_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -148,7 +148,7 @@ public async Task GetScopedFormAsync_InvalidForm_ThrowsInvalidOperationException var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -166,7 +166,7 @@ public void GetScopedForm_WithScope_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); using var scope = serviceProvider.CreateScope(); @@ -186,7 +186,7 @@ public void GetScopedForm_WithScope_InvalidForm_ThrowsInvalidOperationException( var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); using var scope = serviceProvider.CreateScope(); @@ -205,7 +205,7 @@ public async Task GetScopedFormAsync_WithScope_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); using var scope = serviceProvider.CreateScope(); @@ -225,7 +225,7 @@ public async Task GetScopedFormAsync_WithScope_InvalidForm_ThrowsInvalidOperatio var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); using var scope = serviceProvider.CreateScope(); @@ -246,7 +246,7 @@ public void GetMainFormular_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -267,7 +267,7 @@ public void GetMainFormular_InvalidForm_ThrowsInvalidOperationException() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -285,7 +285,7 @@ public async Task GetMainFormularAsync_EverythingFine_Expected() var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); @@ -306,7 +306,7 @@ public async Task GetMainFormularAsync_InvalidForm_ThrowsInvalidOperationExcepti var serviceProvider = services.BuildServiceProvider(); var synchronizationContext = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; using var formularProvider = new FormularProvider(serviceProvider, synchronizationContext); diff --git a/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/IServiceCollectionExtensionsTests.cs b/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/IServiceCollectionExtensionsTests.cs index bfab398..65c7ed1 100644 --- a/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/IServiceCollectionExtensionsTests.cs +++ b/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/IServiceCollectionExtensionsTests.cs @@ -39,6 +39,6 @@ public void AddWindowsFormsLifetime_ConfigurationNull_Expected( { options.EnableConsoleShutdown = true; } - } + }, }; } diff --git a/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/WindowsFormsSynchronizationContextProviderTests.cs b/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/WindowsFormsSynchronizationContextProviderTests.cs index 8a85547..ca2c3e7 100644 --- a/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/WindowsFormsSynchronizationContextProviderTests.cs +++ b/tests/NetEvolve.Extensions.Hosting.WinForms.Tests.Unit/Internals/WindowsFormsSynchronizationContextProviderTests.cs @@ -37,7 +37,7 @@ public void Invoke_Action_Expected() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act / Assert @@ -74,7 +74,7 @@ public void Invoke_Func_Expected() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -118,7 +118,7 @@ public void Invoke_FuncWithInput_Expected() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -161,7 +161,7 @@ public async Task InvokeAsync_ActionThrows_ExpectedException() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -182,7 +182,7 @@ public async Task InvokeAsync_Action_CancellationTokenCanceled_ThrowsTaskCancele WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = new WindowsFormsSynchronizationContext() + Context = new WindowsFormsSynchronizationContext(), }; // Act @@ -199,7 +199,7 @@ public async Task InvokeAsync_Action_Expected() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -243,7 +243,7 @@ public async Task InvokeAsync_FuncThrows_ExpectedException() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -264,7 +264,7 @@ public async Task InvokeAsync_Func_CancellationTokenCanceled_ThrowsTaskCanceledE WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = new WindowsFormsSynchronizationContext() + Context = new WindowsFormsSynchronizationContext(), }; // Act @@ -281,7 +281,7 @@ public async Task InvokeAsync_Func_Expected() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -325,7 +325,7 @@ public async Task InvokeAsync_FuncWithInputThrows_ExpectedException() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act @@ -349,7 +349,7 @@ public async Task InvokeAsync_FuncWithInput_CancellationTokenCanceled_ThrowsTask WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = new WindowsFormsSynchronizationContext() + Context = new WindowsFormsSynchronizationContext(), }; // Act @@ -371,7 +371,7 @@ public async Task InvokeAsync_FuncWithInput_Expected() WindowsFormsSynchronizationContext.AutoInstall = false; var provider = new WindowsFormsSynchronizationContextProvider { - Context = SynchronizationContext.Current! + Context = SynchronizationContext.Current!, }; // Act