Beispiel #1
0
        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");
        }
Beispiel #2
0
        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");
        }