public void CreateHttpWebRequestTestCase()
        {
            var creator = new WebRequestCreate();

            var http = creator.Create(new Uri("http://localhost/"));

            Assert.IsNotNull(http);
            Assert.IsInstanceOf<HttpWebRequest>(http);
            Assert.IsNotInstanceOf<FakeRequest>(http);
            TestHelper.IsValidRequestObject(http as HttpWebRequest);
        }
        public void CreateFakeRequestTestCase()
        {
            string url = "http://localhost.mocked/";
            Factory.Register(url, "c#");
            var creator = new WebRequestCreate();
            var http = creator.Create(new Uri(url));

            Assert.IsNotNull(http);
            Assert.IsInstanceOf<FakeRequest>(http);
            TestHelper.IsValidRequestObject(http as FakeRequest);
        }