From f2bc73df9d13cf414f82247398096bad325bdc24 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 3 Aug 2013 18:16:15 +0100 Subject: [PATCH] Added Country string and GetCountry method to Address.cs. --- Faker.Net/Address.cs | 255 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 255 insertions(+) diff --git a/Faker.Net/Address.cs b/Faker.Net/Address.cs index f043dc1..c8a12e5 100644 --- a/Faker.Net/Address.cs +++ b/Faker.Net/Address.cs @@ -97,6 +97,11 @@ public static string GetNeighborhood() { return NEIGHBORHOOD.Rand(); } + + public static string GetCountry() + { + return COUNTRY.Rand(); + } [Obsolete] public static string ZipCode() @@ -262,5 +267,255 @@ public static string Neighborhood() "Cipriani", "Brentwood Central", "Jupiter South/Abacoa", "Sea Ranch Lakes", "Schall Circle/Lakeside Green", "Olmsted Falls Central", "South of Lake Shore Blvd", "Gates Mills North", "White Oak South of Columbia Pike", "Rockville East of Hungerford Dr", "Cleveland Park" }; + + public static readonly string[] COUNTRY = + { + "Åland Islands", + "Afghanistan", + "Albania", + "Algeria", + "American Samoa", + "Andorra", + "Angola", + "Anguilla", + "Antarctica", + "Antigua And Barbuda", + "Argentina", + "Armenia", + "Aruba", + "Australia", + "Austria", + "Azerbaijan", + "Bahamas", + "Bahrain", + "Bangladesh", + "Barbados", + "Belarus", + "Belgium", + "Belize", + "Benin", + "Bermuda", + "Bhutan", + "Bolivia", + "Bosnia And Herzegovina", + "Botswana", + "Bouvet Island", + "Brazil", + "British Indian Ocean Territory", + "Brunei Darussalam", + "Bulgaria", + "Burkina Faso", + "Burundi", + "Cambodia", + "Cameroon", + "Canada", + "Cape Verde", + "Cayman Islands", + "Central African Republic", + "Chad", + "Chile", + "China", + "Christmas Island", + "Cocos (keeling) Islands", + "Colombia", + "Comoros", + "Congo", + "Congo, The Democratic Republic Of The", + "Cook Islands", + "Costa Rica", + "CÔte D'ivoire", + "Croatia", + "Cuba", + "Cyprus", + "Czech Republic", + "Denmark", + "Djibouti", + "Dominica", + "Dominican Republic", + "Ecuador", + "Egypt", + "El Salvador", + "Equatorial Guinea", + "Eritrea", + "Estonia", + "Ethiopia", + "Falkland Islands (Malvinas)", + "Faroe Islands", + "Fiji", + "Finland", + "France", + "French Guiana", + "French Polynesia", + "French Southern Territories", + "Gabon", + "Gambia", + "Georgia", + "Germany", + "Ghana", + "Gibraltar", + "Greece", + "Greenland", + "Grenada", + "Guadeloupe", + "Guam", + "Guatemala", + "Guernsey", + "Guinea", + "Guinea-bissau", + "Guyana", + "Haiti", + "Heard Island And Mcdonald Islands", + "Honduras", + "Hong Kong", + "Hungary", + "Iceland", + "India", + "Indonesia", + "Iran, Islamic Republic Of", + "Iraq", + "Ireland", + "Isle Of Man", + "Israel", + "Italy", + "Jamaica", + "Japan", + "Jersey", + "Jordan", + "Kazakhstan", + "Kenya", + "Kiribati", + "Korea, Democratic People's Republic Of", + "Korea, Republic Of", + "Kuwait", + "Kyrgyzstan", + "Lao People's Democratic Republic", + "Latvia", + "Lebanon", + "Lesotho", + "Liberia", + "Libyan Arab Jamahiriya", + "Liechtenstein", + "Lithuania", + "Luxembourg", + "Macao", + "Macedonia, The Former Yugoslav Republic Of", + "Madagascar", + "Malawi", + "Malaysia", + "Maldives", + "Mali", + "Malta", + "Marshall Islands", + "Martinique", + "Mauritania", + "Mauritius", + "Mayotte", + "Mexico", + "Micronesia, Federated States Of", + "Moldova", + "Monaco", + "Mongolia", + "Montenegro", + "Montserrat", + "Morocco", + "Mozambique", + "Myanmar", + "Namibia", + "Nauru", + "Nepal", + "Netherlands", + "Netherlands Antilles", + "New Caledonia", + "New Zealand", + "Nicaragua", + "Niger", + "Nigeria", + "Niue", + "Norfolk Island", + "Northern Mariana Islands", + "Norway", + "Oman", + "Pakistan", + "Palau", + "Palestinian Territory, Occupied", + "Panama", + "Papua New Guinea", + "Paraguay", + "Peru", + "Philippines", + "Pitcairn", + "Poland", + "Portugal", + "Puerto Rico", + "Qatar", + "RÉunion", + "Romania", + "Russian Federation", + "Rwanda", + "Saint BarthÉlemy", + "Saint Helena", + "Saint Kitts And Nevis", + "Saint Lucia", + "Saint Martin", + "Saint Pierre And Miquelon", + "Saint Vincent And The Grenadines", + "Samoa", + "San Marino", + "Sao Tome And Principe", + "Saudi Arabia", + "Senegal", + "Serbia", + "Seychelles", + "Sierra Leone", + "Singapore", + "Slovakia", + "Slovenia", + "Solomon Islands", + "Somalia", + "South Africa", + "South Georgia And The South Sandwich Islands", + "Spain", + "Sri Lanka", + "Sudan", + "Suriname", + "Svalbard And Jan Mayen", + "Swaziland", + "Sweden", + "Switzerland", + "Syrian Arab Republic", + "Taiwan, Province Of China", + "Tajikistan", + "Tanzania, United Republic Of", + "Thailand", + "Timor-leste", + "Togo", + "Tokelau", + "Tonga", + "Trinidad And Tobago", + "Tunisia", + "Turkey", + "Turkmenistan", + "Turks And Caicos Islands", + "Tuvalu", + "Uganda", + "Ukraine", + "United Arab Emirates", + "United Kingdom", + "United States", + "United States Minor Outlying Islands", + "Uruguay", + "Uzbekistan", + "Vanuatu", + "Vatican City State", + "Venezuela", + "Vietnam", + "Virgin Islands, British", + "Virgin Islands, U.S.", + "Wallis And Futuna", + "Western Sahara", + "Yemen", + "Zambia", + "Zimbabwe" + }; }; }