mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-05 12:51: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
|
@ -205,7 +205,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>." + "\nuni
|
|||
{
|
||||
List<UserEntity> users = new()
|
||||
{
|
||||
MockHelper.GetUnitTestUser(),
|
||||
new UserEntity
|
||||
{
|
||||
UserId = 2,
|
||||
|
@ -259,10 +258,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>." + "\nuni
|
|||
{
|
||||
UserEntity unitTestUser = MockHelper.GetUnitTestUser();
|
||||
unitTestUser.EmailAddressVerified = true;
|
||||
await using DatabaseContext dbMock = await MockHelper.GetTestDatabase(new List<UserEntity>
|
||||
{
|
||||
unitTestUser,
|
||||
});
|
||||
await using DatabaseContext dbMock = await MockHelper.GetTestDatabase();
|
||||
|
||||
Mock<IMailService> mailMock = getMailServiceMock();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue