public void Statuses() { APIBase api = new APIBase(); // Statuses HttpWebResponse response = api.MakeAPIRequest("GET", "application/help", "people/Statuses.help"); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); Assert.LessThanOrEqualTo(0, response.ContentLength); string responseString = api.GetResponseString(response); TestLog.WriteLine("Response: " + responseString); Assert.Contains(responseString, "Fellowship One RESTful API - Statuses"); }
public void General() { APIBase api = new APIBase(); api.Realm = "giving"; // General HttpWebResponse response = api.MakeAPIRequest("GET", "application/help", "Util/Docs.help"); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); Assert.LessThanOrEqualTo(0, response.ContentLength); string responseString = api.GetResponseString(response); TestLog.WriteLine("Response: " + responseString); Assert.Contains(responseString, "Fellowship One RESTful API - Docs"); }