public void EnqueueThisFileAsNextResponse(string sampleData) { Stream responseStream = new FileStream(sampleData, FileMode.Open); var webResponse = new TestWebResponse(responseStream); _responses.Enqueue(webResponse); }
public void EnqueueThisDocumentAsNextResponse(XDocument document) { var webResponse = new TestWebResponse(document); _responses.Enqueue(webResponse); }