mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-07 22:01:28 +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
|
@ -94,7 +94,7 @@ public class CommentControllerTests
|
|||
Type = SlotType.User,
|
||||
},
|
||||
};
|
||||
await using DatabaseContext dbMock = await MockHelper.GetTestDatabase(new[]{slots,});
|
||||
await using DatabaseContext dbMock = await MockHelper.GetTestDatabase(slots);
|
||||
|
||||
CommentController commentController = new(dbMock);
|
||||
commentController.SetupTestController("<comment><message>test</message></comment>");
|
||||
|
@ -122,7 +122,7 @@ public class CommentControllerTests
|
|||
Type = SlotType.Developer,
|
||||
},
|
||||
};
|
||||
await using DatabaseContext dbMock = await MockHelper.GetTestDatabase(new[] { slots, });
|
||||
await using DatabaseContext dbMock = await MockHelper.GetTestDatabase(slots);
|
||||
|
||||
CommentController commentController = new(dbMock);
|
||||
commentController.SetupTestController("<comment><message>test</message></comment>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue