protected override void When() { /*force it to go into early state*/ ReceivedResponse = CreateRingingResponse(); ClientDialog.SetLastResponse(ReceivedResponse); ClientDialog.State.Should().Be(DialogState.Early); /*required assertion*/ }
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; }
protected override void When() { _okResponse = CreateOkResponse(); ClientDialog.SetLastResponse(_okResponse); }
protected override void When() { var ringingResponse = CreateRingingResponse(); ClientDialog.SetLastResponse(ringingResponse); }