переделывание тестов

This commit is contained in:
2025-02-05 10:58:50 +03:00
parent fd1eda2661
commit f51dd93c87
28 changed files with 407 additions and 325 deletions
@@ -12,11 +12,6 @@ public class StreamBasedInteractionModule : IInteractionModule
ListenTo((id, stream), _handler);
}
public void SetMessageHandler(Action<int, byte[]> handler)
{
_handler = handler;
}
public void SendTo(int clientId, byte[] message)
{
if (!_streams.TryGetValue(clientId, out var stream))
@@ -51,6 +46,13 @@ public class StreamBasedInteractionModule : IInteractionModule
public void Inject<T>(T dependency)
{
throw new NotImplementedException();
if (dependency is ISerialisationModule serialisationModule)
{
_handler = serialisationModule.HandleIncomingRequest;
}
}
public void Bake()
{
}
}