public void when_ctor_and_call_is_not_incoming__should_raise_ring_event()
        {
            var sut = new CallingInviteState(_session);

            _callMgr.Verify(
                x => x.RaiseRingEvent(It.Is<Call>(c => ReferenceEquals(c, _call.Object)), It.Is<bool>(b => b)));
        }
        public void when_ctor_and_call_is_not_incoming__should_raise_ring_event()
        {
            var sut = new CallingInviteState(_session);

            _callMgr.Verify(
                x => x.RaiseRingEvent(It.Is <ICallInternal>(c => ReferenceEquals(c, _call.Object)), It.Is <bool>(b => b)));
        }
        public void when_ctor_and_call_is_incoming__should_not_raise_ring_event()
        {
            _call.SetupGet(x => x.IsIncoming).Returns(true);
            var sut = new CallingInviteState(_session);

            _callMgr.Verify(
                x => x.RaiseRingEvent(It.Is<Call>(c => ReferenceEquals(c, _call.Object)), It.Is<bool>(b => b)),
                Times.Never());
        }
        public void when_ctor_and_call_is_incoming__should_not_raise_ring_event()
        {
            _call.SetupGet(x => x.IsIncoming).Returns(true);
            var sut = new CallingInviteState(_session);

            _callMgr.Verify(
                x => x.RaiseRingEvent(It.Is <ICallInternal>(c => ReferenceEquals(c, _call.Object)), It.Is <bool>(b => b)),
                Times.Never());
        }
 public void when_ctor__should_set_session_isRinging()
 {
     var sut = new CallingInviteState(_session);
     Assert.That(_session.IsRinging, Is.EqualTo(true));
 }
 public void when_ctor__should_set_session_inviteState()
 {
     var sut = new CallingInviteState(_session);
     Assert.That(_session.InviteState, Is.EqualTo(InviteState.Calling));
 }
        public void when_ctor__should_set_session_isRinging()
        {
            var sut = new CallingInviteState(_session);

            Assert.That(_session.IsRinging, Is.EqualTo(true));
        }
        public void when_ctor__should_set_session_inviteState()
        {
            var sut = new CallingInviteState(_session);

            Assert.That(_session.InviteState, Is.EqualTo(InviteState.Calling));
        }