aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-25 14:52:46 +0800
committercrupest <crupest@outlook.com>2022-12-25 14:53:58 +0800
commit4368b3f0474c43c717f9fc96fbae0b3854bac50f (patch)
tree0004822a2ea7a987176e28396c7cc74cb61ef692 /docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs
parent96330e77cf13c690232c2c269d244d1ff62ff544 (diff)
downloadcrupest-4368b3f0474c43c717f9fc96fbae0b3854bac50f.tar.gz
crupest-4368b3f0474c43c717f9fc96fbae0b3854bac50f.tar.bz2
crupest-4368b3f0474c43c717f9fc96fbae0b3854bac50f.zip
Add migration.
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs')
-rw-r--r--docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs
index 284dbe2..ad0d34c 100644
--- a/docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs
+++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons.Tests/Crud/CrudServiceTest.cs
@@ -1,3 +1,4 @@
+using CrupestApi.Commons.Crud.Migrations;
using Microsoft.Extensions.Logging.Abstractions;
namespace CrupestApi.Commons.Crud.Tests;
@@ -15,7 +16,7 @@ public class CrudServiceTest
var dbConnectionFactory = new SqliteMemoryConnectionFactory();
_crudService = new CrudService<TestEntity>(
- tableInfoFactory, dbConnectionFactory, NullLoggerFactory.Instance);
+ tableInfoFactory, dbConnectionFactory, new SqliteDatabaseMigrator(), NullLoggerFactory.Instance);
}
[Fact]