Exemplo n.º 1
0
        public void TestSendEvent()
        {
            Expect.Once.On(mock_disp)
            .Method("Dispatch");

            Expect.Once.On(mock_disp)
            .Method("Dispose");

            server.SendEvent(mock_disp);

            mocks.VerifyAllExpectationsHaveBeenMet();
        }
Exemplo n.º 2
0
 //////////////////////////////////////////////////////////////////////////
 public void RaiseBundleEvent(BundleEvent evnt)
 {
     m_eventServer.PostEvent(new BundleEventDispatcher(m_bundleListeners, evnt));
     m_eventServer.SendEvent(new SyncBundleEventDispatcher(m_syncBundleListeners, evnt));
 }