public void GetRequestFromContextNoContext() { HttpContext.Current = null; TestBadChannel badChannel = new TestBadChannel(); badChannel.GetRequestFromContext(); }
public void SendIndirectMessageFormPostEmptyRecipient() { TestBadChannel badChannel = new TestBadChannel(); var message = new TestDirectedMessage(MessageTransport.Indirect); badChannel.CreateFormPostResponse(message, new Dictionary <string, string>()); }
public void ReadFromRequestNoContext() { HttpContext.Current = null; TestBadChannel badChannel = new TestBadChannel(false); badChannel.ReadFromRequest(); }
public void SendIndirectMessageFormPostNullFields() { TestBadChannel badChannel = new TestBadChannel(); var message = new TestDirectedMessage(MessageTransport.Indirect); message.Recipient = new Uri("http://someserver"); badChannel.CreateFormPostResponse(message, null); }
public async Task ReadFromRequestNull() { TestBadChannel badChannel = new TestBadChannel(); await badChannel.ReadFromRequestAsync(null, CancellationToken.None); }
public void ReceiveUnrecognizedMessage() { TestBadChannel badChannel = new TestBadChannel(); Assert.IsNull(badChannel.Receive(new Dictionary <string, string>(), null)); }
public void ReceiveNull() { TestBadChannel badChannel = new TestBadChannel(); badChannel.Receive(null, null); }
public void SendIndirectMessageNull() { TestBadChannel badChannel = new TestBadChannel(); badChannel.PrepareIndirectResponse(null); }
public void SendIndirectMessageFormPostNullMessage() { TestBadChannel badChannel = new TestBadChannel(); badChannel.CreateFormPostResponse(null, new Dictionary <string, string>()); }
public void ReadFromRequestNull() { TestBadChannel badChannel = new TestBadChannel(false); badChannel.ReadFromRequest(null); }
public void SendIndirectMessage301GetNullMessage() { TestBadChannel badChannel = new TestBadChannel(false); badChannel.Create301RedirectResponse(null, new Dictionary <string, string>()); }