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 @@ - + 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; } }