public void TestTokenBlockInteractions_Basic()
        {
            MyWorkflow mw = new MyWorkflow(null, "Workflow#1", Guid.NewGuid());


            MyWorkflowCase wfCase = new MyWorkflowCase("Case 1");

            wfCase.RootToken.TokenStateChangingTo += new Token.TokenStateChange(RootToken_TokenStateChangingTo);
            wfCase.CaseCompleted += new WorkflowCaseEvent(wfCase_CaseCompleted);

            mw.AcceptCase(wfCase);
        }
        public void TestTokenBlockInteractions_Ext1()
        {
            Model      model = new Model("TestTokenBlockInteractions_Ext1", Guid.NewGuid());
            MyWorkflow mw    = new MyWorkflow(model, "Workflow#2", Guid.NewGuid());

            MyWorkflowCase wfCase = new MyWorkflowCase("Case 1");

            wfCase.RootToken.TokenStateChangingTo += new Token.TokenStateChange(RootToken_TokenStateChangingTo);
            wfCase.CaseCompleted += new WorkflowCaseEvent(wfCase_CaseCompleted);

            model.Starting += new ModelEvent(
                delegate(IModel m) {
                m.Executive.RequestEvent(new ExecEventReceiver(delegate(IExecutive exec, object data) { mw.AcceptCase(wfCase); }), m.Executive.Now, 0.0, null);
            });
            model.Start();
        }