Beispiel #1
0
        public void GetRequestFromContextNoContext()
        {
            HttpContext.Current = null;
            TestBadChannel badChannel = new TestBadChannel();

            badChannel.GetRequestFromContext();
        }
Beispiel #2
0
        public void SendIndirectMessageFormPostEmptyRecipient()
        {
            TestBadChannel badChannel = new TestBadChannel();
            var            message    = new TestDirectedMessage(MessageTransport.Indirect);

            badChannel.CreateFormPostResponse(message, new Dictionary <string, string>());
        }
Beispiel #3
0
        public void ReadFromRequestNoContext()
        {
            HttpContext.Current = null;
            TestBadChannel badChannel = new TestBadChannel(false);

            badChannel.ReadFromRequest();
        }
Beispiel #4
0
        public void SendIndirectMessageFormPostNullFields()
        {
            TestBadChannel badChannel = new TestBadChannel();
            var            message    = new TestDirectedMessage(MessageTransport.Indirect);

            message.Recipient = new Uri("http://someserver");
            badChannel.CreateFormPostResponse(message, null);
        }
Beispiel #5
0
 public async Task ReadFromRequestNull()
 {
     TestBadChannel badChannel = new TestBadChannel();
     await badChannel.ReadFromRequestAsync(null, CancellationToken.None);
 }
Beispiel #6
0
        public void ReceiveUnrecognizedMessage()
        {
            TestBadChannel badChannel = new TestBadChannel();

            Assert.IsNull(badChannel.Receive(new Dictionary <string, string>(), null));
        }
Beispiel #7
0
        public void ReceiveNull()
        {
            TestBadChannel badChannel = new TestBadChannel();

            badChannel.Receive(null, null);
        }
Beispiel #8
0
        public void SendIndirectMessageNull()
        {
            TestBadChannel badChannel = new TestBadChannel();

            badChannel.PrepareIndirectResponse(null);
        }
Beispiel #9
0
        public void SendIndirectMessageFormPostNullMessage()
        {
            TestBadChannel badChannel = new TestBadChannel();

            badChannel.CreateFormPostResponse(null, new Dictionary <string, string>());
        }
Beispiel #10
0
        public void ReadFromRequestNull()
        {
            TestBadChannel badChannel = new TestBadChannel(false);

            badChannel.ReadFromRequest(null);
        }
Beispiel #11
0
        public void SendIndirectMessage301GetNullMessage()
        {
            TestBadChannel badChannel = new TestBadChannel(false);

            badChannel.Create301RedirectResponse(null, new Dictionary <string, string>());
        }