示例#1
0
        CStateMachine makeIncomingCall(int sessionId)
        {
            string number = "1234";
            //CStateMachine sm1 = new CStateMachine(null);
            CStateMachine sm1 = _manager.createSession(sessionId, number);

            sm1.getState().incomingCall(number, "");

            //sm1.changeState(EStateId.INCOMING);
            Assert.AreEqual(EStateId.INCOMING, sm1.getStateId());
            Assert.AreEqual(true, sm1.Incoming);

            Assert.AreEqual(sm1.RuntimeDuration, TimeSpan.Zero);

            return(sm1);
        }