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, CommentId = 1,
PosterUserId = 1, PosterUserId = 1,
TargetId = 1, TargetSlotId = 1,
Type = CommentType.Level, Type = CommentType.Level,
}; };
database.Comments.Add(comment); database.Comments.Add(comment);
@ -89,7 +89,7 @@ public class ActivityEventHandlerTests
{ {
CommentId = 1, CommentId = 1,
PosterUserId = 1, PosterUserId = 1,
TargetId = 1, TargetUserId = 1,
Type = CommentType.Profile, Type = CommentType.Profile,
}; };
database.Comments.Add(comment); database.Comments.Add(comment);
@ -152,7 +152,7 @@ public class ActivityEventHandlerTests
{ {
ScoreId = 1, ScoreId = 1,
SlotId = 1, SlotId = 1,
PlayerIdCollection = "test", UserId = 1,
}; };
database.Scores.Add(score); database.Scores.Add(score);
await database.SaveChangesAsync(); 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.Entities.Website;
using LBPUnion.ProjectLighthouse.Types.Levels; using LBPUnion.ProjectLighthouse.Types.Levels;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
#if DEBUG
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
#endif
namespace LBPUnion.ProjectLighthouse.Types.Activity; namespace LBPUnion.ProjectLighthouse.Types.Activity;