diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9bcf7fd..d72c6db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,14 @@ jobs: - name: Test Core run: dotnet test test/Danom.Tests -c Release - - name: Build Validtion + - name: Build Validation run: dotnet build src/Danom.Validation -c Release - name: Test Validation run: dotnet test test/Danom.Validation.Tests -c Release + + - name: Build Mvc + run: dotnet build src/Danom.Mvc -c Release + + - name: Test Mvc + run: dotnet test test/Danom.Mvc.Tests -c Release diff --git a/src/Danom.Mvc/Danom.Mvc.csproj b/src/Danom.Mvc/Danom.Mvc.csproj index 9b73b3b..330037c 100644 --- a/src/Danom.Mvc/Danom.Mvc.csproj +++ b/src/Danom.Mvc/Danom.Mvc.csproj @@ -2,7 +2,7 @@ Danom.Mvc - 1.0.0-alpha1 + 1.0.0-beta1 ASP.NET Core MVC helpers for Danom. @@ -43,14 +43,9 @@ - - - - + + diff --git a/test/Danom.Mvc.Tests/ModelStateDictionaryExtensionsTests.cs b/test/Danom.Mvc.Tests/ModelStateDictionaryExtensionsTests.cs index e33ddae..07d3b33 100644 --- a/test/Danom.Mvc.Tests/ModelStateDictionaryExtensionsTests.cs +++ b/test/Danom.Mvc.Tests/ModelStateDictionaryExtensionsTests.cs @@ -29,6 +29,7 @@ public void AddResultErrorsShouldWork() var errors = new ResultErrors("Key1", "Error1"); modelState.AddResultErrors(errors); Assert.Equal(1, modelState.ErrorCount); + Assert.True(modelState.ContainsKey("Key1")); } [Fact] @@ -40,5 +41,7 @@ public void AddResultErrorsShouldWorkWithMultipleErrors() new ResultError("Key2", "Error2")]); modelState.AddResultErrors(errors); Assert.Equal(2, modelState.ErrorCount); + Assert.True(modelState.ContainsKey("Key1")); + Assert.True(modelState.ContainsKey("Key2")); } }