Hobsons.WebApiHelpers.UnitTests.EnricherHttpMessageHandlerTests.EnricherHttpMessageHandlerTests C# (CSharp) Method

EnricherHttpMessageHandlerTests() public method

Initialises a new instance of the EnricherHttpMessageHandlerTests class.
public EnricherHttpMessageHandlerTests ( ) : System.Collections.Generic
return System.Collections.Generic
        public EnricherHttpMessageHandlerTests()
        {
            this.fakeResponse = new HttpResponseMessage(HttpStatusCode.OK)
                                    {
                                        Content =
                                            new ObjectContent(
                                            typeof(FakeModel),
                                            new FakeModel(),
                                            new JsonMediaTypeFormatter())
                                    };

            this.fakeInnerHandler = new FakeInnerHttpMessageHandler { Message = this.fakeResponse };

            this.cancellationToken = new CancellationToken(false);
        }