From b0e378375789fe9bbdacba7a4c861daaacd73966 Mon Sep 17 00:00:00 2001 From: gamer147 Date: Wed, 3 Jun 2026 20:23:57 -0400 Subject: [PATCH] refactor(battle-node): drop dead MatchingResolver options param; fix stray BOM Co-Authored-By: Claude Opus 4.8 --- SVSim.EmulatedEntrypoint/Matching/MatchingResolver.cs | 3 +-- .../BattleNode/Sessions/InMemoryBattleSessionStoreTests.cs | 3 +-- SVSim.UnitTests/Matching/MatchingResolverTests.cs | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/SVSim.EmulatedEntrypoint/Matching/MatchingResolver.cs b/SVSim.EmulatedEntrypoint/Matching/MatchingResolver.cs index ea5188c..7de7b75 100644 --- a/SVSim.EmulatedEntrypoint/Matching/MatchingResolver.cs +++ b/SVSim.EmulatedEntrypoint/Matching/MatchingResolver.cs @@ -10,8 +10,7 @@ public sealed class MatchingResolver : IMatchingResolver public MatchingResolver( IMatchingBridge bridge, - IMatchingPairUpService pairUp, - BattleNodeOptions options) + IMatchingPairUpService pairUp) { _bridge = bridge; _pairUp = pairUp; diff --git a/SVSim.UnitTests/BattleNode/Sessions/InMemoryBattleSessionStoreTests.cs b/SVSim.UnitTests/BattleNode/Sessions/InMemoryBattleSessionStoreTests.cs index bbb0cbc..e24e31c 100644 --- a/SVSim.UnitTests/BattleNode/Sessions/InMemoryBattleSessionStoreTests.cs +++ b/SVSim.UnitTests/BattleNode/Sessions/InMemoryBattleSessionStoreTests.cs @@ -1,4 +1,4 @@ -using NUnit.Framework; +using NUnit.Framework; using SVSim.BattleNode.Bridge; using SVSim.BattleNode.Sessions; @@ -49,4 +49,3 @@ public class InMemoryBattleSessionStoreTests EmblemId: "701441011", DegreeId: "300003", FieldId: 43, IsOfficial: 0, BattleType: 11); } - diff --git a/SVSim.UnitTests/Matching/MatchingResolverTests.cs b/SVSim.UnitTests/Matching/MatchingResolverTests.cs index c93e9be..8edeedb 100644 --- a/SVSim.UnitTests/Matching/MatchingResolverTests.cs +++ b/SVSim.UnitTests/Matching/MatchingResolverTests.cs @@ -17,15 +17,13 @@ public class MatchingResolverTests private sealed record Harness( Mock Bridge, Mock PairUp, - BattleNodeOptions Options, MatchingResolver Resolver); private static Harness BuildHarness() { var bridge = new Mock(MockBehavior.Strict); var pairUp = new Mock(MockBehavior.Strict); - var options = new BattleNodeOptions { NodeServerUrl = "localhost:5148/socket.io/" }; - return new Harness(bridge, pairUp, options, new MatchingResolver(bridge.Object, pairUp.Object, options)); + return new Harness(bridge, pairUp, new MatchingResolver(bridge.Object, pairUp.Object)); } private static BattlePlayer Player(long vid = 1) =>