Fix broken tests

This commit is contained in:
Slendy 2023-08-27 00:33:22 -05:00
commit dd5b1b8f08
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 7 additions and 3 deletions

View file

@ -60,7 +60,7 @@ public class ActivityEventHandlerTests
{
CommentId = 1,
PosterUserId = 1,
TargetId = 1,
TargetSlotId = 1,
Type = CommentType.Level,
};
database.Comments.Add(comment);
@ -89,7 +89,7 @@ public class ActivityEventHandlerTests
{
CommentId = 1,
PosterUserId = 1,
TargetId = 1,
TargetUserId = 1,
Type = CommentType.Profile,
};
database.Comments.Add(comment);
@ -152,7 +152,7 @@ public class ActivityEventHandlerTests
{
ScoreId = 1,
SlotId = 1,
PlayerIdCollection = "test",
UserId = 1,
};
database.Scores.Add(score);
await database.SaveChangesAsync();

View file

@ -9,6 +9,10 @@ using LBPUnion.ProjectLighthouse.Types.Entities.Profile;
using LBPUnion.ProjectLighthouse.Types.Entities.Website;
using LBPUnion.ProjectLighthouse.Types.Levels;
using Microsoft.EntityFrameworkCore;
#if DEBUG
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
#endif
namespace LBPUnion.ProjectLighthouse.Types.Activity;