Beispiel #1
0
        public void Test_ApplicationEventIsError()
        {
            var handler = new InboundErrorRequestObserverHandler(observer.Object, logger.Object);

            Assert.Equal(DynamicHttpHandlerEvent.Error, handler.ApplicationEvent);
        }
Beispiel #2
0
        public void Test_IsEnabledShouldReturnTrue()
        {
            var handler = new InboundErrorRequestObserverHandler(observer.Object, logger.Object);

            Assert.True(handler.IsEnabled(null));
        }
Beispiel #3
0
        public void Test_PathIsNull()
        {
            var handler = new InboundErrorRequestObserverHandler(observer.Object, logger.Object);

            Assert.Null(handler.Path);
        }
Beispiel #4
0
        public void Test_ContinueNextShouldReturnTrue()
        {
            var handler = new InboundErrorRequestObserverHandler(observer.Object, logger.Object);

            Assert.True(handler.ContinueNext(null));
        }