From 24934d6db01165590eb5c2809fc94fe3fb388640 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Dec 2023 21:52:05 +0000 Subject: [PATCH 1/3] build(deps): bump LanguageExt.Core from 3.4.15 to 4.4.7 Bumps [LanguageExt.Core](https://github.com/louthy/language-ext) from 3.4.15 to 4.4.7. - [Release notes](https://github.com/louthy/language-ext/releases) - [Changelog](https://github.com/louthy/language-ext/blob/main/version-2-release-notes.md) - [Commits](https://github.com/louthy/language-ext/commits) --- updated-dependencies: - dependency-name: LanguageExt.Core dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .../VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj | 2 +- .../VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj | 2 +- .../VolleyM.Infrastructure.AzureStorage.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj b/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj index 76e5af703..5843019ff 100644 --- a/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj +++ b/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj b/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj index 7a1519d64..d3e3a4755 100644 --- a/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj +++ b/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj b/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj index 8958838b3..d61066d28 100644 --- a/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj +++ b/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj @@ -5,7 +5,7 @@ - + From 530856814e6358b94ae9df28b7b9265c5cd6ddc1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 23 Dec 2023 07:29:26 +0000 Subject: [PATCH 2/3] build(deps): bump LanguageExt.Core from 3.4.15 to 4.4.7 Bumps [LanguageExt.Core](https://github.com/louthy/language-ext) from 3.4.15 to 4.4.7. - [Release notes](https://github.com/louthy/language-ext/releases) - [Changelog](https://github.com/louthy/language-ext/blob/main/version-2-release-notes.md) - [Commits](https://github.com/louthy/language-ext/commits) --- updated-dependencies: - dependency-name: LanguageExt.Core dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .../VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj | 2 +- .../VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj | 2 +- .../VolleyM.Infrastructure.AzureStorage.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj b/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj index 76e5af703..5843019ff 100644 --- a/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj +++ b/src/Domain/VolleyM.Domain.Contracts/VolleyM.Domain.Contracts.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj b/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj index 7a1519d64..d3e3a4755 100644 --- a/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj +++ b/src/Domain/VolleyM.Domain.Framework/VolleyM.Domain.Framework.csproj @@ -5,7 +5,7 @@ - + diff --git a/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj b/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj index 8958838b3..d61066d28 100644 --- a/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj +++ b/src/Infrastructure/VolleyM.Infrastructure.AzureStorage/VolleyM.Infrastructure.AzureStorage.csproj @@ -5,7 +5,7 @@ - + From 5a3a25f04e88132dd99e23e8f1a4bf1555e84e5e Mon Sep 17 00:00:00 2001 From: Sergii Diachenko Date: Sat, 23 Dec 2023 21:50:37 +0200 Subject: [PATCH 3/3] refactor(test-framework): :recycle: fix type resolution after library upgrade --- .../TestExtensions.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/unit-tests/VolleyM.Domain.UnitTests.Framework/TestExtensions.cs b/tests/unit-tests/VolleyM.Domain.UnitTests.Framework/TestExtensions.cs index fa34130cd..c2e104e5d 100644 --- a/tests/unit-tests/VolleyM.Domain.UnitTests.Framework/TestExtensions.cs +++ b/tests/unit-tests/VolleyM.Domain.UnitTests.Framework/TestExtensions.cs @@ -96,12 +96,19 @@ private static void PerformAssertion( private static object GetActual(Either actualResult) { - var actual = actualResult.Case switch + object actual; + switch (actualResult.Case) { - LeftCase(var error) => error, - RightCase(var result) => (object)result, - _ => throw new InvalidOperationException() - }; + case (Error error): + actual = error; + break; + case (T result): + actual = result; + break; + default: + throw new InvalidOperationException(); + } + return actual; } }