public void CanHandle_DataStartMessage_True()
        {
            // arrange
            var handler = new DataStopMessageHandler();
            var message = new DataStopMessage("123");

            // act
            var result = handler.CanHandle(message);

            // assert
            Assert.True(result);
        }
        public void CanHandle_KeepAliveMessage_False()
        {
            // arrange
            var handler = new DataStopMessageHandler();
            KeepConnectionAliveMessage message = KeepConnectionAliveMessage.Default;

            // act
            var result = handler.CanHandle(message);

            // assert
            Assert.False(result);
        }
Exemple #3
0
        public void CanHandle_KeepAliveMessage_False()
        {
            // arrange
            IQueryExecutor executor = SchemaBuilder.New()
                                      .AddStarWarsTypes()
                                      .Create()
                                      .MakeExecutable();

            var handler = new DataStopMessageHandler();
            var message = KeepConnectionAliveMessage.Default;

            // act
            bool result = handler.CanHandle(message);

            // assert
            Assert.False(result);
        }