예제 #1
0
 protected override void GivenOverride()
 {
     /*force it to go into confirmed state*/
     ServerDialog.SetLastResponse(CreateRingingResponse());
     ServerDialog.SetLastResponse(CreateOkResponse());
     ServerDialog.State.Should().Be(DialogState.Confirmed); /*required assertion*/
 }
예제 #2
0
 protected override void When()
 {
     /*force it to go into early state*/
     _ringingResponse = CreateRingingResponse();
     ServerDialog.SetLastResponse(_ringingResponse);
     ServerDialog.State.Should().Be(DialogState.Early); /*required assertion*/
 }
예제 #3
0
 protected override void When()
 {
     try
     {
         var okResponse = CreateOkResponse();
         ServerDialog.SetLastResponse(okResponse);
     }
     catch (Exception)
     {
         _thrown = true;
     }
 }
        protected override void When()
        {
            var ringingResponse = CreateRingingResponse();

            ServerDialog.SetLastResponse(ringingResponse);
        }
예제 #5
0
 protected override void When()
 {
     _okResponse = CreateOkResponse();
     ServerDialog.SetLastResponse(_okResponse);
 }
예제 #6
0
 protected override void When()
 {
     _busyHereResponse = CreateBusyHereResponse();
     ServerDialog.SetLastResponse(_busyHereResponse);
 }