public SubscriptionProtocolHandlerFacts() { _schema = new TestSchema(); _documentExecuter = Substitute.For <IDocumentExecuter>(); _subscriptionExecuter = Substitute.For <ISubscriptionExecuter>(); _messageWriter = Substitute.For <IJsonMessageWriter>(); var logger = Substitute.For <ILogger <SubscriptionProtocolHandler <TestSchema> > >(); _sut = new SubscriptionProtocolHandler <TestSchema>( _schema, _subscriptionExecuter, _documentExecuter, logger); }
public SubscriptionProtocolHandlerFacts() { _schema = new TestSchema(); _documentExecuter = Substitute.For <IDocumentExecuter>(); _subscriptionExecuter = Substitute.For <ISubscriptionExecuter>(); _messageWriter = Substitute.For <IJsonMessageWriter>(); _connection = Substitute.For <IConnectionContext>(); _connection.Writer.Returns(_messageWriter); _connection.ConnectionId.Returns("1"); var logger = Substitute.For <ILogger <SubscriptionProtocolHandler <TestSchema> > >(); _sut = new SubscriptionProtocolHandler <TestSchema>( _schema, _subscriptionExecuter, _documentExecuter, logger); }