searchRetrieveResponse CallJStor(string searchUrl) { var callbacks = new SearchResponseCallbacks(); var processor = new Restful.ParallelProcessor(callbacks); processor.ProcessWithCredentials(searchUrl, Creds); return callbacks.Response; }
public void CanGetProperlyFormattedXmlFromJstor() { var callbacks = new SearchResponseCallbacks(); var processor = new Restful.ParallelProcessor(callbacks); processor.ProcessWithCredentials(@"http://dfr.jstor.org/sru/?operation=searchRetrieve&query=dc.subject+%3D+mandeville&version=1.1", Search.Creds); Assert.NotNull(callbacks.Response.numberOfRecords, "Serialization error"); }