diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-05-31 19:50:02 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-05-31 19:50:02 -0700 |
commit | 1a1c627434ce6376a24eb1e5554aa364c305b0af (patch) | |
tree | 67661e5bb7cc9118f1b7a5429645e3eb36beef17 /SendGrid/UnitTest/UnitTest.cs | |
parent | 8dac277637410c59b0ad02d8996796d9c36a1dc7 (diff) | |
download | sendgrid-csharp-1a1c627434ce6376a24eb1e5554aa364c305b0af.zip sendgrid-csharp-1a1c627434ce6376a24eb1e5554aa364c305b0af.tar.gz sendgrid-csharp-1a1c627434ce6376a24eb1e5554aa364c305b0af.tar.bz2 |
Formatting
Diffstat (limited to 'SendGrid/UnitTest/UnitTest.cs')
-rw-r--r-- | SendGrid/UnitTest/UnitTest.cs | 643 |
1 files changed, 640 insertions, 3 deletions
diff --git a/SendGrid/UnitTest/UnitTest.cs b/SendGrid/UnitTest/UnitTest.cs index 3b9358c..2827ac9 100644 --- a/SendGrid/UnitTest/UnitTest.cs +++ b/SendGrid/UnitTest/UnitTest.cs @@ -237,12 +237,13 @@ namespace UnitTest [TestFixture] public class v3WebAPI { - static string _apiKey = "SendGrid API Key"; - var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; - public dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); + [Test] public void test_access_settings_activity_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 1 }"; @@ -256,6 +257,9 @@ namespace UnitTest [Test] public void test_access_settings_whitelist_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'ips': [ { @@ -279,6 +283,9 @@ namespace UnitTest [Test] public void test_access_settings_whitelist_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -289,6 +296,9 @@ namespace UnitTest [Test] public void test_access_settings_whitelist_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'ids': [ 1, @@ -306,6 +316,9 @@ namespace UnitTest [Test] public void test_access_settings_whitelist__rule_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); rule_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -317,6 +330,9 @@ namespace UnitTest [Test] public void test_access_settings_whitelist__rule_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); rule_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -328,6 +344,9 @@ namespace UnitTest [Test] public void test_api_keys_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'My API Key', 'scopes': [ @@ -346,6 +365,9 @@ namespace UnitTest [Test] public void test_api_keys_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -356,6 +378,9 @@ namespace UnitTest [Test] public void test_api_keys__api_key_id__put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'A New Hope', 'scopes': [ @@ -374,6 +399,9 @@ namespace UnitTest [Test] public void test_api_keys__api_key_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'A New Hope' }"; @@ -388,6 +416,9 @@ namespace UnitTest [Test] public void test_api_keys__api_key_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); api_key_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -399,6 +430,9 @@ namespace UnitTest [Test] public void test_api_keys__api_key_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); api_key_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -410,6 +444,9 @@ namespace UnitTest [Test] public void test_asm_groups_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'description': 'A group description', 'is_default': false, @@ -425,6 +462,9 @@ namespace UnitTest [Test] public void test_asm_groups_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -435,6 +475,9 @@ namespace UnitTest [Test] public void test_asm_groups__group_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'description': 'Suggestions for items our users might like.', 'id': 103, @@ -451,6 +494,9 @@ namespace UnitTest [Test] public void test_asm_groups__group_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); group_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -462,6 +508,9 @@ namespace UnitTest [Test] public void test_asm_groups__group_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); group_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -473,6 +522,9 @@ namespace UnitTest [Test] public void test_asm_groups__group_id__suppressions_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'recipient_emails': [ 'test1@example.com', @@ -490,6 +542,9 @@ namespace UnitTest [Test] public void test_asm_groups__group_id__suppressions_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); group_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -501,6 +556,9 @@ namespace UnitTest [Test] public void test_asm_groups__group_id__suppressions__email__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); group_id = "test_url_param"; email = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -513,6 +571,9 @@ namespace UnitTest [Test] public void test_asm_suppressions_global_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'recipient_emails': [ 'test1@example.com', @@ -529,6 +590,9 @@ namespace UnitTest [Test] public void test_asm_suppressions_global__email__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -540,6 +604,9 @@ namespace UnitTest [Test] public void test_asm_suppressions_global__email__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -551,6 +618,9 @@ namespace UnitTest [Test] public void test_browsers_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'browsers': 'test_string', @@ -569,6 +639,9 @@ namespace UnitTest [Test] public void test_campaigns_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'categories': [ 'spring line' @@ -599,6 +672,9 @@ namespace UnitTest [Test] public void test_campaigns_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 0, 'offset': 0 @@ -613,6 +689,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'categories': [ 'summer line' @@ -633,6 +712,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); campaign_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -644,6 +726,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); campaign_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -655,6 +740,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__schedules_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'send_at': 1489451436 }"; @@ -669,6 +757,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__schedules_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'send_at': 1489771528 }"; @@ -683,6 +774,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__schedules_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); campaign_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -694,6 +788,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__schedules_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); campaign_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -705,6 +802,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__schedules_now_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); campaign_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -716,6 +816,9 @@ namespace UnitTest [Test] public void test_campaigns__campaign_id__schedules_test_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'to': 'your.email@example.com' }"; @@ -730,6 +833,9 @@ namespace UnitTest [Test] public void test_categories_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'category': 'test_string', 'limit': 1, @@ -745,6 +851,9 @@ namespace UnitTest [Test] public void test_categories_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'categories': 'test_string', @@ -763,6 +872,9 @@ namespace UnitTest [Test] public void test_categories_stats_sums_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -782,6 +894,9 @@ namespace UnitTest [Test] public void test_clients_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -797,6 +912,9 @@ namespace UnitTest [Test] public void test_clients__client_type__stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -813,6 +931,9 @@ namespace UnitTest [Test] public void test_contactdb_custom_fields_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'pet', 'type': 'text' @@ -827,6 +948,9 @@ namespace UnitTest [Test] public void test_contactdb_custom_fields_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -837,6 +961,9 @@ namespace UnitTest [Test] public void test_contactdb_custom_fields__custom_field_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); custom_field_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -848,6 +975,9 @@ namespace UnitTest [Test] public void test_contactdb_custom_fields__custom_field_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); custom_field_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -859,6 +989,9 @@ namespace UnitTest [Test] public void test_contactdb_lists_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'your list name' }"; @@ -872,6 +1005,9 @@ namespace UnitTest [Test] public void test_contactdb_lists_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -882,6 +1018,9 @@ namespace UnitTest [Test] public void test_contactdb_lists_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"[ 1, 2, @@ -898,6 +1037,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'newlistname' }"; @@ -915,6 +1057,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'list_id': 0 }"; @@ -929,6 +1074,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'delete_contacts': 'true' }"; @@ -943,6 +1091,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__recipients_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"[ 'recipient_id1', 'recipient_id2' @@ -958,6 +1109,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__recipients_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'list_id': 0, 'page': 1, @@ -974,6 +1128,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__recipients__recipient_id__post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); list_id = "test_url_param"; recipient_id = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -986,6 +1143,9 @@ namespace UnitTest [Test] public void test_contactdb_lists__list_id__recipients__recipient_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'list_id': 0, 'recipient_id': 0 @@ -1002,6 +1162,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"[ { 'email': 'jones@example.com', @@ -1019,6 +1182,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"[ { 'age': 25, @@ -1043,6 +1209,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'page': 1, 'page_size': 1 @@ -1057,6 +1226,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"[ 'recipient_id1', 'recipient_id2' @@ -1071,6 +1243,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_billable_count_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1081,6 +1256,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_count_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1091,6 +1269,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients_search_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ '{field_name}': 'test_string' }"; @@ -1104,6 +1285,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients__recipient_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); recipient_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1115,6 +1299,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients__recipient_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); recipient_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1126,6 +1313,9 @@ namespace UnitTest [Test] public void test_contactdb_recipients__recipient_id__lists_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); recipient_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1137,6 +1327,9 @@ namespace UnitTest [Test] public void test_contactdb_reserved_fields_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1147,6 +1340,9 @@ namespace UnitTest [Test] public void test_contactdb_segments_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'conditions': [ { @@ -1181,6 +1377,9 @@ namespace UnitTest [Test] public void test_contactdb_segments_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1191,6 +1390,9 @@ namespace UnitTest [Test] public void test_contactdb_segments__segment_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'conditions': [ { @@ -1217,6 +1419,9 @@ namespace UnitTest [Test] public void test_contactdb_segments__segment_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'segment_id': 0 }"; @@ -1231,6 +1436,9 @@ namespace UnitTest [Test] public void test_contactdb_segments__segment_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'delete_contacts': 'true' }"; @@ -1245,6 +1453,9 @@ namespace UnitTest [Test] public void test_contactdb_segments__segment_id__recipients_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'page': 1, 'page_size': 1 @@ -1260,6 +1471,9 @@ namespace UnitTest [Test] public void test_devices_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -1277,6 +1491,9 @@ namespace UnitTest [Test] public void test_geo_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'country': 'US', @@ -1295,6 +1512,9 @@ namespace UnitTest [Test] public void test_ips_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'exclude_whitelabels': 'true', 'ip': 'test_string', @@ -1312,6 +1532,9 @@ namespace UnitTest [Test] public void test_ips_assigned_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1322,6 +1545,9 @@ namespace UnitTest [Test] public void test_ips_pools_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'marketing' }"; @@ -1335,6 +1561,9 @@ namespace UnitTest [Test] public void test_ips_pools_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1345,6 +1574,9 @@ namespace UnitTest [Test] public void test_ips_pools__pool_name__put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'new_pool_name' }"; @@ -1359,6 +1591,9 @@ namespace UnitTest [Test] public void test_ips_pools__pool_name__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); pool_name = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1370,6 +1605,9 @@ namespace UnitTest [Test] public void test_ips_pools__pool_name__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); pool_name = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1381,6 +1619,9 @@ namespace UnitTest [Test] public void test_ips_pools__pool_name__ips_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'ip': '0.0.0.0' }"; @@ -1395,6 +1636,9 @@ namespace UnitTest [Test] public void test_ips_pools__pool_name__ips__ip__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); pool_name = "test_url_param"; ip = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -1407,6 +1651,9 @@ namespace UnitTest [Test] public void test_ips_warmup_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'ip': '0.0.0.0' }"; @@ -1420,6 +1667,9 @@ namespace UnitTest [Test] public void test_ips_warmup_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1430,6 +1680,9 @@ namespace UnitTest [Test] public void test_ips_warmup__ip_address__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); ip_address = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1441,6 +1694,9 @@ namespace UnitTest [Test] public void test_ips_warmup__ip_address__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); ip_address = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1452,6 +1708,9 @@ namespace UnitTest [Test] public void test_ips__ip_address__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); ip_address = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1463,6 +1722,9 @@ namespace UnitTest [Test] public void test_mail_batch_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 201); @@ -1473,6 +1735,9 @@ namespace UnitTest [Test] public void test_mail_batch__batch_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); batch_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -1484,6 +1749,9 @@ namespace UnitTest [Test] public void test_mail_send_beta_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'asm': { 'group_id': 1, @@ -1637,6 +1905,9 @@ namespace UnitTest [Test] public void test_mail_settings_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 1, 'offset': 1 @@ -1651,6 +1922,9 @@ namespace UnitTest [Test] public void test_mail_settings_address_whitelist_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'list': [ @@ -1668,6 +1942,9 @@ namespace UnitTest [Test] public void test_mail_settings_address_whitelist_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1678,6 +1955,9 @@ namespace UnitTest [Test] public void test_mail_settings_bcc_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': 'email@example.com', 'enabled': false @@ -1692,6 +1972,9 @@ namespace UnitTest [Test] public void test_mail_settings_bcc_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1702,6 +1985,9 @@ namespace UnitTest [Test] public void test_mail_settings_bounce_purge_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'hard_bounces': 5, @@ -1717,6 +2003,9 @@ namespace UnitTest [Test] public void test_mail_settings_bounce_purge_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1727,6 +2016,9 @@ namespace UnitTest [Test] public void test_mail_settings_footer_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'html_content': '...', @@ -1742,6 +2034,9 @@ namespace UnitTest [Test] public void test_mail_settings_footer_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1752,6 +2047,9 @@ namespace UnitTest [Test] public void test_mail_settings_forward_bounce_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': 'example@example.com', 'enabled': true @@ -1766,6 +2064,9 @@ namespace UnitTest [Test] public void test_mail_settings_forward_bounce_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1776,6 +2077,9 @@ namespace UnitTest [Test] public void test_mail_settings_forward_spam_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': '', 'enabled': false @@ -1790,6 +2094,9 @@ namespace UnitTest [Test] public void test_mail_settings_forward_spam_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1800,6 +2107,9 @@ namespace UnitTest [Test] public void test_mail_settings_plain_content_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': false }"; @@ -1813,6 +2123,9 @@ namespace UnitTest [Test] public void test_mail_settings_plain_content_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1823,6 +2136,9 @@ namespace UnitTest [Test] public void test_mail_settings_spam_check_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'max_score': 5, @@ -1838,6 +2154,9 @@ namespace UnitTest [Test] public void test_mail_settings_spam_check_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1848,6 +2167,9 @@ namespace UnitTest [Test] public void test_mail_settings_template_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'html_content': '<% body %>' @@ -1862,6 +2184,9 @@ namespace UnitTest [Test] public void test_mail_settings_template_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1872,6 +2197,9 @@ namespace UnitTest [Test] public void test_mailbox_providers_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -1890,6 +2218,9 @@ namespace UnitTest [Test] public void test_partner_settings_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 1, 'offset': 1 @@ -1904,6 +2235,9 @@ namespace UnitTest [Test] public void test_partner_settings_new_relic_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enable_subuser_statistics': true, 'enabled': true, @@ -1919,6 +2253,9 @@ namespace UnitTest [Test] public void test_partner_settings_new_relic_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1929,6 +2266,9 @@ namespace UnitTest [Test] public void test_scopes_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -1939,6 +2279,9 @@ namespace UnitTest [Test] public void test_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -1956,6 +2299,9 @@ namespace UnitTest [Test] public void test_subusers_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': 'John@example.com', 'ips': [ @@ -1975,6 +2321,9 @@ namespace UnitTest [Test] public void test_subusers_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 0, 'offset': 0, @@ -1990,6 +2339,9 @@ namespace UnitTest [Test] public void test_subusers_reputations_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'usernames': 'test_string' }"; @@ -2003,6 +2355,9 @@ namespace UnitTest [Test] public void test_subusers_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -2021,6 +2376,9 @@ namespace UnitTest [Test] public void test_subusers_stats_monthly_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'date': 'test_string', 'limit': 1, @@ -2039,6 +2397,9 @@ namespace UnitTest [Test] public void test_subusers_stats_sums_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -2058,6 +2419,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'disabled': false }"; @@ -2072,6 +2436,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); subuser_name = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2083,6 +2450,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__ips_put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"[ '127.0.0.1' ]"; @@ -2097,6 +2467,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__monitor_put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': 'example@example.com', 'frequency': 500 @@ -2112,6 +2485,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__monitor_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': 'example@example.com', 'frequency': 50000 @@ -2127,6 +2503,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__monitor_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); subuser_name = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2138,6 +2517,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__monitor_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); subuser_name = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2149,6 +2531,9 @@ namespace UnitTest [Test] public void test_subusers__subuser_name__stats_monthly_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'date': 'test_string', 'limit': 0, @@ -2167,6 +2552,9 @@ namespace UnitTest [Test] public void test_suppression_blocks_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'end_time': 1, 'limit': 1, @@ -2183,6 +2571,9 @@ namespace UnitTest [Test] public void test_suppression_blocks_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'delete_all': false, 'emails': [ @@ -2200,6 +2591,9 @@ namespace UnitTest [Test] public void test_suppression_blocks__email__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2211,6 +2605,9 @@ namespace UnitTest [Test] public void test_suppression_blocks__email__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2222,6 +2619,9 @@ namespace UnitTest [Test] public void test_suppression_bounces_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'end_time': 0, 'start_time': 0 @@ -2236,6 +2636,9 @@ namespace UnitTest [Test] public void test_suppression_bounces_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'delete_all': true, 'emails': [ @@ -2253,6 +2656,9 @@ namespace UnitTest [Test] public void test_suppression_bounces__email__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2264,6 +2670,9 @@ namespace UnitTest [Test] public void test_suppression_bounces__email__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'email_address': 'example@example.com' }"; @@ -2278,6 +2687,9 @@ namespace UnitTest [Test] public void test_suppression_invalid_emails_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'end_time': 1, 'limit': 1, @@ -2294,6 +2706,9 @@ namespace UnitTest [Test] public void test_suppression_invalid_emails_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'delete_all': false, 'emails': [ @@ -2311,6 +2726,9 @@ namespace UnitTest [Test] public void test_suppression_invalid_emails__email__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2322,6 +2740,9 @@ namespace UnitTest [Test] public void test_suppression_invalid_emails__email__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2333,6 +2754,9 @@ namespace UnitTest [Test] public void test_suppression_spam_report__email__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2344,6 +2768,9 @@ namespace UnitTest [Test] public void test_suppression_spam_report__email__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); email = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2355,6 +2782,9 @@ namespace UnitTest [Test] public void test_suppression_spam_reports_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'end_time': 1, 'limit': 1, @@ -2371,6 +2801,9 @@ namespace UnitTest [Test] public void test_suppression_spam_reports_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'delete_all': false, 'emails': [ @@ -2388,6 +2821,9 @@ namespace UnitTest [Test] public void test_suppression_unsubscribes_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'end_time': 1, 'limit': 1, @@ -2404,6 +2840,9 @@ namespace UnitTest [Test] public void test_templates_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'example_name' }"; @@ -2417,6 +2856,9 @@ namespace UnitTest [Test] public void test_templates_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2427,6 +2869,9 @@ namespace UnitTest [Test] public void test_templates__template_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'name': 'new_example_name' }"; @@ -2441,6 +2886,9 @@ namespace UnitTest [Test] public void test_templates__template_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); template_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2452,6 +2900,9 @@ namespace UnitTest [Test] public void test_templates__template_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); template_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2463,6 +2914,9 @@ namespace UnitTest [Test] public void test_templates__template_id__versions_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'active': 1, 'html_content': '<%body%>', @@ -2482,6 +2936,9 @@ namespace UnitTest [Test] public void test_templates__template_id__versions__version_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'active': 1, 'html_content': '<%body%>', @@ -2501,6 +2958,9 @@ namespace UnitTest [Test] public void test_templates__template_id__versions__version_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); template_id = "test_url_param"; version_id = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -2513,6 +2973,9 @@ namespace UnitTest [Test] public void test_templates__template_id__versions__version_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); template_id = "test_url_param"; version_id = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -2525,6 +2988,9 @@ namespace UnitTest [Test] public void test_templates__template_id__versions__version_id__activate_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); template_id = "test_url_param"; version_id = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -2537,6 +3003,9 @@ namespace UnitTest [Test] public void test_tracking_settings_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 1, 'offset': 1 @@ -2551,6 +3020,9 @@ namespace UnitTest [Test] public void test_tracking_settings_click_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true }"; @@ -2564,6 +3036,9 @@ namespace UnitTest [Test] public void test_tracking_settings_click_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2574,6 +3049,9 @@ namespace UnitTest [Test] public void test_tracking_settings_google_analytics_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'utm_campaign': 'website', @@ -2592,6 +3070,9 @@ namespace UnitTest [Test] public void test_tracking_settings_google_analytics_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2602,6 +3083,9 @@ namespace UnitTest [Test] public void test_tracking_settings_open_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true }"; @@ -2615,6 +3099,9 @@ namespace UnitTest [Test] public void test_tracking_settings_open_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2625,6 +3112,9 @@ namespace UnitTest [Test] public void test_tracking_settings_subscription_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'enabled': true, 'html_content': 'html content', @@ -2643,6 +3133,9 @@ namespace UnitTest [Test] public void test_tracking_settings_subscription_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2653,6 +3146,9 @@ namespace UnitTest [Test] public void test_user_account_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2663,6 +3159,9 @@ namespace UnitTest [Test] public void test_user_credits_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2673,6 +3172,9 @@ namespace UnitTest [Test] public void test_user_email_put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'email': 'example@example.com' }"; @@ -2686,6 +3188,9 @@ namespace UnitTest [Test] public void test_user_email_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2696,6 +3201,9 @@ namespace UnitTest [Test] public void test_user_password_put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'new_password': 'new_password', 'old_password': 'old_password' @@ -2710,6 +3218,9 @@ namespace UnitTest [Test] public void test_user_profile_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'city': 'Orange', 'first_name': 'Example', @@ -2725,6 +3236,9 @@ namespace UnitTest [Test] public void test_user_profile_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2735,6 +3249,9 @@ namespace UnitTest [Test] public void test_user_scheduled_sends_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'batch_id': 'YOUR_BATCH_ID', 'status': 'pause' @@ -2749,6 +3266,9 @@ namespace UnitTest [Test] public void test_user_scheduled_sends_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2759,6 +3279,9 @@ namespace UnitTest [Test] public void test_user_scheduled_sends__batch_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'status': 'pause' }"; @@ -2773,6 +3296,9 @@ namespace UnitTest [Test] public void test_user_scheduled_sends__batch_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); batch_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2784,6 +3310,9 @@ namespace UnitTest [Test] public void test_user_scheduled_sends__batch_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); batch_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -2795,6 +3324,9 @@ namespace UnitTest [Test] public void test_user_settings_enforced_tls_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'require_tls': true, 'require_valid_cert': false @@ -2809,6 +3341,9 @@ namespace UnitTest [Test] public void test_user_settings_enforced_tls_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2819,6 +3354,9 @@ namespace UnitTest [Test] public void test_user_username_put() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'username': 'test_username' }"; @@ -2832,6 +3370,9 @@ namespace UnitTest [Test] public void test_user_username_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2842,6 +3383,9 @@ namespace UnitTest [Test] public void test_user_webhooks_event_settings_patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'bounce': true, 'click': true, @@ -2867,6 +3411,9 @@ namespace UnitTest [Test] public void test_user_webhooks_event_settings_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2877,6 +3424,9 @@ namespace UnitTest [Test] public void test_user_webhooks_event_test_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'url': 'url' }"; @@ -2890,6 +3440,9 @@ namespace UnitTest [Test] public void test_user_webhooks_parse_settings_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2900,6 +3453,9 @@ namespace UnitTest [Test] public void test_user_webhooks_parse_stats_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'aggregated_by': 'day', 'end_date': '2016-04-01', @@ -2917,6 +3473,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'automatic_security': false, 'custom_spf': true, @@ -2939,6 +3498,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'domain': 'test_string', 'exclude_subusers': 'true', @@ -2956,6 +3518,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains_default_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2966,6 +3531,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains_subuser_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 200); @@ -2976,6 +3544,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains_subuser_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); headers.Add("X-Mock", 204); @@ -2986,6 +3557,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__domain_id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'custom_spf': true, 'default': false @@ -3001,6 +3575,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__domain_id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); domain_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3012,6 +3589,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__domain_id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); domain_id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3023,6 +3603,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__domain_id__subuser_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'username': 'jane@example.com' }"; @@ -3037,6 +3620,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__id__ips_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'ip': '192.168.0.1' }"; @@ -3051,6 +3637,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__id__ips__ip__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; ip = "test_url_param" Dictionary<String, String> headers = new Dictionary<String, String>(); @@ -3063,6 +3652,9 @@ namespace UnitTest [Test] public void test_whitelabel_domains__id__validate_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3074,6 +3666,9 @@ namespace UnitTest [Test] public void test_whitelabel_ips_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'domain': 'example.com', 'ip': '192.168.1.1', @@ -3089,6 +3684,9 @@ namespace UnitTest [Test] public void test_whitelabel_ips_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'ip': 'test_string', 'limit': 1, @@ -3104,6 +3702,9 @@ namespace UnitTest [Test] public void test_whitelabel_ips__id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3115,6 +3716,9 @@ namespace UnitTest [Test] public void test_whitelabel_ips__id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3126,6 +3730,9 @@ namespace UnitTest [Test] public void test_whitelabel_ips__id__validate_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3137,6 +3744,9 @@ namespace UnitTest [Test] public void test_whitelabel_links_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'default': true, 'domain': 'example.com', @@ -3156,6 +3766,9 @@ namespace UnitTest [Test] public void test_whitelabel_links_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'limit': 1 }"; @@ -3169,6 +3782,9 @@ namespace UnitTest [Test] public void test_whitelabel_links_default_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'domain': 'test_string' }"; @@ -3182,6 +3798,9 @@ namespace UnitTest [Test] public void test_whitelabel_links_subuser_get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'username': 'test_string' }"; @@ -3195,6 +3814,9 @@ namespace UnitTest [Test] public void test_whitelabel_links_subuser_delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string params = @"{ 'username': 'test_string' }"; @@ -3208,6 +3830,9 @@ namespace UnitTest [Test] public void test_whitelabel_links__id__patch() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'default': true }"; @@ -3222,6 +3847,9 @@ namespace UnitTest [Test] public void test_whitelabel_links__id__get() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3233,6 +3861,9 @@ namespace UnitTest [Test] public void test_whitelabel_links__id__delete() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3244,6 +3875,9 @@ namespace UnitTest [Test] public void test_whitelabel_links__id__validate_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); id = "test_url_param"; Dictionary<String, String> headers = new Dictionary<String, String>(); headers.Clear(); @@ -3255,6 +3889,9 @@ namespace UnitTest [Test] public void test_whitelabel_links__link_id__subuser_post() { + string _apiKey = "SendGrid API Key"; + var host = "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io"; + dynamic sg = new SendGrid.SendGridAPIClient(_apiKey, host); string data = @"{ 'username': 'jane@example.com' }"; |