mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-04 10:58:38 +00:00
Fix photo activity handler test
This commit is contained in:
parent
cd0c85308a
commit
402fd4b493
1 changed files with 9 additions and 0 deletions
|
@ -120,12 +120,21 @@ public class ActivityEventHandlerTests
|
||||||
Username = "test",
|
Username = "test",
|
||||||
UserId = 1,
|
UserId = 1,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
new List<SlotEntity>
|
||||||
|
{
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
SlotId = 1,
|
||||||
|
CreatorId = 1,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
PhotoEntity photo = new()
|
PhotoEntity photo = new()
|
||||||
{
|
{
|
||||||
PhotoId = 1,
|
PhotoId = 1,
|
||||||
CreatorId = 1,
|
CreatorId = 1,
|
||||||
|
SlotId = 1,
|
||||||
};
|
};
|
||||||
database.Photos.Add(photo);
|
database.Photos.Add(photo);
|
||||||
await database.SaveChangesAsync();
|
await database.SaveChangesAsync();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue