mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-06 05:11:27 +00:00
Migrate to SQLite EF provider for testing (#966)
* Migrate to Sqlite EF provider for testing * Fix failing unit test
This commit is contained in:
parent
25eaae1542
commit
c529dada35
9 changed files with 115 additions and 142 deletions
|
@ -19,6 +19,7 @@ public class ModerationTests
|
|||
ModerationCaseEntity @case = new()
|
||||
{
|
||||
CaseId = 1,
|
||||
CreatorId = 1,
|
||||
ExpiresAt = DateTime.UnixEpoch,
|
||||
CreatorUsername = "unitTestUser",
|
||||
};
|
||||
|
@ -41,6 +42,7 @@ public class ModerationTests
|
|||
ModerationCaseEntity @case = new()
|
||||
{
|
||||
CaseId = 2,
|
||||
CreatorId = 1,
|
||||
ExpiresAt = DateTime.UtcNow.AddHours(1),
|
||||
CreatorUsername = "unitTestUser",
|
||||
};
|
||||
|
@ -63,6 +65,7 @@ public class ModerationTests
|
|||
ModerationCaseEntity @case = new()
|
||||
{
|
||||
CaseId = 3,
|
||||
CreatorId = 1,
|
||||
ExpiresAt = DateTime.UnixEpoch,
|
||||
DismissedAt = DateTime.UnixEpoch,
|
||||
CreatorUsername = "unitTestUser",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue