/// <summary> /// Initializes a new instance of the PipelineEmulator class /// </summary> /// <param name="parent">The parent instance to get dependencies from</param> /// <param name="contextData">The current context data</param> /// <param name="propertyValuesBeforeSave">The property values of the tracked client objects before the call to SaveChanges</param> /// <param name="options">The current save-changes options</param> /// <param name="requestResponsePairs">The observed http traffic for the current save-changes call</param> public PipelineEmulator(SaveChangesHttpValidatingEmulator parent, DataServiceContextData contextData, IDictionary <object, IEnumerable <NamedValue> > propertyValuesBeforeSave, SaveChangesOptions options, IEnumerable <KeyValuePair <IHttpRequest, HttpResponseData> > requestResponsePairs) { this.parent = parent; this.contextData = contextData; this.propertyValuesBeforeSave = propertyValuesBeforeSave; this.options = options; this.httpQueue = new Queue <KeyValuePair <IHttpRequest, HttpResponseData> >(requestResponsePairs); }
/// <summary> /// Initializes a new instance of the PipelineEmulator class /// </summary> /// <param name="parent">The parent instance to get dependencies from</param> /// <param name="contextData">The current context data</param> /// <param name="propertyValuesBeforeSave">The property values of the tracked client objects before the call to SaveChanges</param> /// <param name="options">The current save-changes options</param> /// <param name="requestResponsePairs">The observed http traffic for the current save-changes call</param> public PipelineEmulator(SaveChangesHttpValidatingEmulator parent, DataServiceContextData contextData, IDictionary<object, IEnumerable<NamedValue>> propertyValuesBeforeSave, SaveChangesOptions options, IEnumerable<KeyValuePair<IHttpRequest, HttpResponseData>> requestResponsePairs) { this.parent = parent; this.contextData = contextData; this.propertyValuesBeforeSave = propertyValuesBeforeSave; this.options = options; this.httpQueue = new Queue<KeyValuePair<IHttpRequest, HttpResponseData>>(requestResponsePairs); }