Пример #1
0
 protected override void When()
 {
     /*force it to go into early state*/
     ReceivedResponse = CreateRingingResponse();
     ClientDialog.SetLastResponse(ReceivedResponse);
     ClientDialog.State.Should().Be(DialogState.Early); /*required assertion*/
 }
Пример #2
0
 protected override void When()
 {
     /*force it to go into state*/
     ReceivedResponse = CreateOkResponse();
     ClientDialog.SetLastResponse(CreateRingingResponse());
     ClientDialog.SetLastResponse(CreateBusyHereResponse());
     ClientDialog.State.Should().Be(DialogState.Terminated); /*required assertion*/
 }
 protected override void GivenOverride()
 {
     /*force it to go into confirmed state*/
     ReceivedResponse = CreateOkResponse();
     ClientDialog.SetLastResponse(CreateRingingResponse());
     ClientDialog.SetLastResponse(CreateOkResponse());
     ClientDialog.State.Should().Be(DialogState.Confirmed); /*required assertion*/
     _beforeSentSeqNr = ClientDialog.LocalSequenceNr;
 }
Пример #4
0
 protected override void When()
 {
     _okResponse = CreateOkResponse();
     ClientDialog.SetLastResponse(_okResponse);
 }
Пример #5
0
        protected override void When()
        {
            var ringingResponse = CreateRingingResponse();

            ClientDialog.SetLastResponse(ringingResponse);
        }