Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Sep 9, 2024
1 parent 89571fb commit 2f0a2ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/GangsImpl/AbstractDB/DBRank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace GenericDB;

public class DBRank : IGangRank {
public int GangId { get; init; }
public string Name { get; init; }
public required string Name { get; init; }
public int Rank { get; init; }
public IGangRank.Permissions Perms { get; init; }

Expand Down
7 changes: 3 additions & 4 deletions src/GangsTest/API/Services/Commands/Command/TestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ namespace GangsTest.API.Services.Commands.Command;

public class TestData : TheoryData<ICommand> {
private static readonly IPlayerManager playerMgr = new MockPlayerManager();

private static readonly IGangManager manager =
new MockGangManager(playerMgr, rankMgr);

private static readonly IMenuManager menuMgr = new MockMenuManager();

private static readonly IPlayerStatManager statMgr =
new MockInstanceStatManager();

private static readonly IRankManager rankMgr = new MockRankManager(playerMgr);

private static readonly IGangManager manager =
new MockGangManager(playerMgr, rankMgr);

private readonly ICommand[] behaviors = [
new CreateCommand(manager, StringLocalizer.Instance), new HelpCommand(),
new GangCommand(manager, playerMgr, menuMgr, StringLocalizer.Instance),
Expand Down

0 comments on commit 2f0a2ab

Please sign in to comment.