refactor(battle-node): drop dead MatchingResolver options param; fix stray BOM
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -10,8 +10,7 @@ public sealed class MatchingResolver : IMatchingResolver
|
||||
|
||||
public MatchingResolver(
|
||||
IMatchingBridge bridge,
|
||||
IMatchingPairUpService pairUp,
|
||||
BattleNodeOptions options)
|
||||
IMatchingPairUpService pairUp)
|
||||
{
|
||||
_bridge = bridge;
|
||||
_pairUp = pairUp;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,15 +17,13 @@ public class MatchingResolverTests
|
||||
private sealed record Harness(
|
||||
Mock<IMatchingBridge> Bridge,
|
||||
Mock<IMatchingPairUpService> PairUp,
|
||||
BattleNodeOptions Options,
|
||||
MatchingResolver Resolver);
|
||||
|
||||
private static Harness BuildHarness()
|
||||
{
|
||||
var bridge = new Mock<IMatchingBridge>(MockBehavior.Strict);
|
||||
var pairUp = new Mock<IMatchingPairUpService>(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) =>
|
||||
|
||||
Reference in New Issue
Block a user