/// <summary> /// Generate and return a country code. /// </summary> /// <param name="fixture">The fixture to generate a country code for</param> /// <returns>The generated country code</returns> public static string CountryCode(this AnonymousValueFixture fixture) { if (_geoCountryCodeSource == null) { _geoCountryCodeSource = new GeoCountryCodeSource(); } return(_geoCountryCodeSource.Next()); }
/// <summary> /// Generate and return a country code. /// </summary> /// <param name="fixture">The fixture to generate a country code for</param> /// <returns>The generated country code</returns> public static string CountryCode(this AnonymousValueFixture fixture) { if (_geoCountryCodeSource == null) _geoCountryCodeSource = new GeoCountryCodeSource(); return _geoCountryCodeSource.Next(); }