diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 110f87a..e9f8aa8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,7 +17,10 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
- dotnet-version: 10.0.x
+ # 11 builds the net11.0 targets; 10 provides the runtime for the net10.0 test runs
+ dotnet-version: |
+ 10.0.x
+ 11.0.x
- name: Install GitVersion
run: dotnet tool install GitVersion.Tool --global --version 5.*
diff --git a/.gitignore b/.gitignore
index a8a59d9..f2f5a5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -360,4 +360,6 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd
-*.json
+
+# GitVersion output (generated in CI)
+version_info.json
diff --git a/Mimeo.DynamicUI.Blazor.Tests/Forms/ImportFormCsvTests.cs b/Mimeo.DynamicUI.Blazor.Tests/Forms/ImportFormCsvTests.cs
new file mode 100644
index 0000000..cfe60fc
--- /dev/null
+++ b/Mimeo.DynamicUI.Blazor.Tests/Forms/ImportFormCsvTests.cs
@@ -0,0 +1,261 @@
+using AwesomeAssertions;
+using Bunit;
+using CsvHelper;
+using Microsoft.AspNetCore.Components.Forms;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Localization;
+using Mimeo.DynamicUI.Blazor.Forms;
+using Mimeo.DynamicUI.Blazor.Services;
+using Mimeo.DynamicUI.Data;
+using System.Globalization;
+
+namespace Mimeo.DynamicUI.Blazor.Tests.Forms
+{
+ ///
+ /// ImportForm reads CSV records through reflection (a generic helper made generic over
+ /// ), so these tests cover the model shapes it must handle.
+ ///
+ public class ImportFormCsvTests
+ {
+ private const string CsvContentType = "text/csv";
+
+ [Fact]
+ public async Task ImportsCsvRecordsAsInstancesOfTheImportModelType()
+ {
+ // Arrange
+ using var context = CreateContext();
+ var service = new RecordingImportService();
+ var imported = new List