tag:blogger.com,1999:blog-9108944828477346591.post8269992422259276832..comments2024-03-18T21:41:15.157+00:00Comments on Hamid Shahid's Weblog: Mocking HttpWebRequestHamidhttp://www.blogger.com/profile/10465713442151551945noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-9108944828477346591.post-59354255132291001942016-02-01T10:57:52.778+00:002016-02-01T10:57:52.778+00:00Very well explained especially the Mocking part.Th...Very well explained especially the Mocking part.Thanksmasmerhttps://www.blogger.com/profile/02217818751653119772noreply@blogger.comtag:blogger.com,1999:blog-9108944828477346591.post-37266829722945193862014-07-03T23:12:36.437+01:002014-07-03T23:12:36.437+01:00Great Stuff! Very similar to http://blog.salamande...Great Stuff! Very similar to <a href="http://blog.salamandersoft.co.uk/index.php/2009/10/how-to-mock-httpwebrequest-when-unit-testing/" rel="nofollow">http://blog.salamandersoft.co.uk/index.php/2009/10/how-to-mock-httpwebrequest-when-unit-testing/</a> but I really like the elegance of using Moq in this instance. Also this solution worked for my scenario (writing unit tests, needed a way to mock a response that gets cast to an HttpWebResponse).Matt Dhttps://www.blogger.com/profile/08217289132061032562noreply@blogger.com