mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-13 00:31: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
|
@ -87,7 +87,7 @@ public class SetLastContactMiddlewareTests
|
|||
},
|
||||
};
|
||||
|
||||
DatabaseContext dbMock = await MockHelper.GetTestDatabase(new[]{lastContacts,});
|
||||
DatabaseContext dbMock = await MockHelper.GetTestDatabase(lastContacts);
|
||||
|
||||
await middleware.InvokeAsync(context, dbMock);
|
||||
|
||||
|
@ -132,10 +132,7 @@ public class SetLastContactMiddlewareTests
|
|||
};
|
||||
tokens[0].GameVersion = GameVersion.LittleBigPlanet2;
|
||||
|
||||
DatabaseContext dbMock = await MockHelper.GetTestDatabase(new[]
|
||||
{
|
||||
tokens,
|
||||
});
|
||||
DatabaseContext dbMock = await MockHelper.GetTestDatabase(tokens);
|
||||
|
||||
await middleware.InvokeAsync(context, dbMock);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue