protected override void Given() { base.Given(); _remoteEndPoint = TestConstants.IpEndPoint1; var response = new SipResponseBuilder().Build(); var bytes = new DataBytesBuilder().WithText(response.FormatEnvelopeToString()).Build(); _packet = new UdpPacketBuilder().WithDataBytes(bytes).WithRemoteEp(_remoteEndPoint).Build(); _channel = new UdpMessageChannel(new SipStack(), new SipValidator(), new SipMessageParser()); }
protected override void Given() { base.Given(); _senderEndPoint = TestConstants.IpEndPoint1; var via = new SipViaHeaderBuilder().WithSentBy(_senderEndPoint).Build(); var request = new SipRequestBuilder().WithVias(new SipViaHeaderListBuilder().Add(via).Build()).Build(); var bytes = new DataBytesBuilder().WithText(request.FormatEnvelopeToString()).Build(); _packet = new UdpPacketBuilder().WithDataBytes(bytes).WithRemoteEp(_senderEndPoint).Build(); _channel = new UdpMessageChannel(new SipStack(), new SipValidator(), new SipMessageParser()); }