Example #1
0
 public void SetUp()
 {
     dummySession = new DummySession();
     handler = new DummyHandler(this);
     dummySession.SetHandler(handler);
     chain = dummySession.FilterChain;
     testResult = String.Empty;
 }
Example #2
0
        public void CanRegisterHandler()
        {
            var handler = new DummyHandler();
            Events.RegisterHandler(handler);

            Events.Publish(new FooEvent());

            Assert.NotNull(handler.HandledEvent);
        }
Example #3
0
        public void CanRegisterHandlerWithoutGenerics()
        {
            var handler = new DummyHandler();
            var handlerWithoutGenerics = (object)handler;
            Events.RegisterHandler(handlerWithoutGenerics);

            Events.Publish(new FooEvent());

            Assert.NotNull(handler.HandledEvent);
        }
 public HttpHandlerBaseTests()
 {
     _httpHandler = new DummyHandler();
 }
		public void SetUp()
		{
			_handler = new DummyHandler();
			_hotKeysLL = new NuGenHotKeysLL();
		}
Example #6
0
        public void ShouldGetEventsToHandlerAfterUnsubscribeAction()
        {
            var handler = new DummyHandler();
            Events.RegisterHandler(handler);
            Events.Unsubscribe<FooEvent>();

            Events.Publish(new FooEvent());

            Assert.NotNull(handler.HandledEvent);
        }
		public void SetUp()
		{
			_handler = new DummyHandler();
		}