/// <summary> /// Constructor. /// </summary> /// <param name="stream">The stream with the content of the message.</param> /// <param name="flags">Flags modifying the behavior of the message.</param> protected TestMessage(Stream stream, TestMessageFlags flags = TestMessageFlags.None) { this.stream = stream; this.flags = flags; this.StreamRetrieved = false; this.IgnoreSynchronousError = false; }
/// <summary> /// Constructor. /// </summary> /// <param name="stream">The stream with the content of the message.</param> /// <param name="flags">The flags modifying the behavior of the message.</param> public TestRequestMessageWithUrlResolver(Stream stream, IODataUrlResolver urlResolver, TestMessageFlags flags = TestMessageFlags.None) : base(stream, flags) { this.urlResolver = urlResolver; }
/// <summary> /// Constructor. /// </summary> /// <param name="stream">The stream with the content of the message.</param> /// <param name="flags">The flags modifying the behavior of the message.</param> public TestRequestMessage(Stream stream, TestMessageFlags flags = TestMessageFlags.None) : base(stream, flags) { this.method = ODataConstants.MethodGet; }
/// <summary> /// Constructor. /// </summary> /// <param name="stream">The stream to wrap in the message.</param> /// <param name="flags">Flags modifying the behavior of the test message.</param> public TestResponseMessage(Stream stream, TestMessageFlags flags = TestMessageFlags.None) : base(stream, flags) { this.statusCode = 200; }
/// <summary> /// Constructor. /// </summary> /// <param name="stream">The stream with the content of the message.</param> /// <param name="flags">The flags modifying the behavior of the message.</param> public TestResponseMessageWithUrlResolver(Stream stream, IODataPayloadUriConverter urlResolver, TestMessageFlags flags = TestMessageFlags.None) : base(stream, flags) { this.urlResolver = urlResolver; }