Esempio n. 1
0
        public void GetConferenceTestBasic()
        {
            // Load Expected result from file
            var testResponse    = File.ReadAllText(@"../../../TestAPIResponses/GetConferenceResult.json");
            var jobj            = JObject.Parse(testResponse);
            var conferenceArray = (JArray)jobj["conferences"];
            var expected        = JsonConvert.DeserializeObject <Conference>(conferenceArray[0].ToString());

            // Make API web call
            var actual = api.GetConference(5); // western

            // Assert
            Assert.AreEqual(expected, actual);
        }