private static Inbox GetInbox() { var httpClient = new HttpClient( new FakeResponseHandler { ResultCode = HttpStatusCode.NotFound, HttpContent = XmlResource.Inbox.GetError() } ) { BaseAddress = new Uri("http://www.fakeBaseAddress.no") }; var requestHelper = new RequestHelper(httpClient, new NullLoggerFactory()); var inbox = new Inbox(DomainUtility.GetSender(), requestHelper); return(inbox); }