public void TestingWorkerRequest_ReturnsProperPayload()
 {
     var content = "PAYLOAD";
       var worker = new TestingWorkerRequest(content);
       var context = new HttpContext(worker);
       var result = new StreamReader(context.Request.InputStream).ReadToEnd();
       Assert.AreEqual(content, result);
 }
        public void TestingWorkerRequest_ReturnsProperPayload()
        {
            var content = "PAYLOAD";
            var worker  = new TestingWorkerRequest(content);
            var context = new HttpContext(worker);
            var result  = new StreamReader(context.Request.InputStream).ReadToEnd();

            Assert.AreEqual(content, result);
        }
        public void TestHandlePostDocumentAsyncCallback_HttpRequest()
        {
            var xml     = GetSampleDocumentXml();
            var worker  = new TestingWorkerRequest(xml);
            var context = new HttpContext(worker);
            var res     = DefensioClient.HandlePostDocumentAsyncCallback(context.Request);

            res[DefensioResult.HttpStatusCodeKey] = 200;
            AssertDocumentTest(res);
        }
 public void TestHandlePostDocumentAsyncCallback_HttpRequest()
 {
     var xml = GetSampleDocumentXml();
       var worker = new TestingWorkerRequest(xml);
       var context = new HttpContext(worker);
       var res = DefensioClient.HandlePostDocumentAsyncCallback(context.Request);
       res[DefensioResult.HttpStatusCodeKey] = 200;
       AssertDocumentTest(res);
 }