Skip to content

Commit

Permalink
danom mvc beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
pimbrouwers committed Oct 11, 2024
1 parent ff4c374 commit 49ca637
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 3 additions & 8 deletions src/Danom.Mvc/Danom.Mvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<AssemblyName>Danom.Mvc</AssemblyName>
<Version>1.0.0-alpha1</Version>
<Version>1.0.0-beta1</Version>

<!-- General info -->
<Description>ASP.NET Core MVC helpers for Danom.</Description>
Expand Down Expand Up @@ -43,14 +43,9 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<!-- <ItemGroup>
<ProjectReference Include="..\Danom\Danom.csproj" />
<ProjectReference Include="..\Danom.Validation\Danom.Validation.csproj" />
</ItemGroup> -->

<ItemGroup>
<PackageReference Include="Danom" Version="1.0.0-alpha3" />
<PackageReference Include="Danom.Validation" Version="1.0.0-alpha*" />
<PackageReference Include="Danom" Version="1.0.0-beta1" />
<PackageReference Include="Danom.Validation" Version="1.0.0-beta1" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions test/Danom.Mvc.Tests/ModelStateDictionaryExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"));
}
}

0 comments on commit 49ca637

Please sign in to comment.