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

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

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

            badChannel.ReadFromRequest();
        }
Example #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);
        }
Example #5
0
 public async Task ReadFromRequestNull()
 {
     TestBadChannel badChannel = new TestBadChannel();
     await badChannel.ReadFromRequestAsync(null, CancellationToken.None);
 }
Example #6
0
        public void ReceiveUnrecognizedMessage()
        {
            TestBadChannel badChannel = new TestBadChannel();

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

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

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

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

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

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