using Sphagnum.Common.Contracts.Login; using Sphagnum.Common.Services; namespace Sphagnum.Common.UnitTests.Services { internal class TestConnectionFactory : ConnectionFactory { internal override SphagnumConnection CreateDefault(Func> messagesProcessorFactory) { return new SphagnumConnection(() => new TestConnection(), messagesProcessorFactory); } internal override Task CreateDefaultConnected(Func> messagesProcessorFactory) { return Task.FromResult(new SphagnumConnection(() => new TestConnection(), messagesProcessorFactory)); } } }