Fix photo activity handler test

This commit is contained in:
Slendy 2024-05-13 21:57:24 -05:00
commit 402fd4b493
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -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();