public async Task TestTestListNumbers() { // Parameters for the API call int?page = null; int?pageSize = null; Standard.Models.NumberTypeEnum?numberType = null; string friendlyName = null; // Perform API call string result = null; try { result = await controller.CreateListNumbersAsync(page, pageSize, numberType, friendlyName); } 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 TestTestListNumbers() { // Parameters for the API call int?page = null; int?pageSize = null; Standard.Models.NumberType14Enum?numberType = null; string friendlyName = null; // Perform API call string result = null; try { result = await controller.CreateListNumbersAsync(page, pageSize, numberType, friendlyName); } catch (APIException) {}; // Test response code Assert.AreEqual(200, httpCallBackHandler.Response.StatusCode, "Status should be 200"); }