public void CallAsyncEventHandler()
        {
            var view       = new ViewObjectWithEventHandler();
            var controller = new ControllerWithAsyncEventHandler(view);

            view.RunEvent();

            Assert.Equal(1, controller.EventCalled);
        }
        public void CallEventHandler()
        {
            var view = new ViewObjectWithEventHandler();

            view.OnEvent += HandleEvent;

            view.RunEvent();

            Assert.True(_eventCalled);
        }