public async Task TestTestListInboundSMS() { // Parameters for the API call string datecreated = null; int? page = null; int? pagesize = null; string mfrom = null; string shortcode = null; // Perform API call string result = null; try { result = await controller.CreateListInboundSMSAsync(datecreated, page, pagesize, mfrom, shortcode); } catch (APIException) {}; // Test response code Assert.AreEqual(200, httpCallBackHandler.Response.StatusCode, "Status should be 200"); // Test headers Dictionary <string, string> headers = new Dictionary <string, string>(); headers.Add("Content-Type", "application/json"); Assert.IsTrue(TestHelper.AreHeadersProperSubsetOf( headers, httpCallBackHandler.Response.Headers), "Headers should match"); }
public async Task TestTestListInboundSMS() { // Parameters for the API call string datecreated = null; int? page = null; int? pagesize = null; string mfrom = null; string shortcode = null; // Perform API call string result = null; try { result = await controller.CreateListInboundSMSAsync(datecreated, page, pagesize, mfrom, shortcode); } catch (APIException) {}; // Test response code Assert.AreEqual(200, httpCallBackHandler.Response.StatusCode, "Status should be 200"); }