示例#1
0
 /// <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;
 }
示例#2
0
 /// <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;
 }
示例#4
0
 /// <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;
 }
示例#5
0
 /// <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;
 }
示例#6
0
 /// <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;
 }
示例#7
0
 /// <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 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;
 }
示例#9
0
 /// <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;
 }