Exemple #1
0
        internal static void InitializeUniqueEmailAddressSource()
        {
            var recordCount = Fixture.Words(FromDictionary.PersonEmailAddress).Data.Count;
            var generator   = new SequentialGenerator(0, recordCount, listShouldBeUnique: true);

            _uniquePersonEmailAddressSource = new Words(generator, new CachedFileDictionaryRepository(),
                                                        FromDictionary.PersonEmailAddress);
        }
        internal static void ResetUniqueEmailAddressSource(this AnonymousValueFixture fixture)
        {
            if (_personEmailAddressSource == null)
            {
                _personEmailAddressSource = fixture.Words(FromDictionary.PersonEmailAddress);
            }
            var generator = new SequentialGenerator(0, _personEmailAddressSource.Data.Count, listShouldBeUnique: true);

            _uniquePersonEmailAddressSource = new Words(generator, new CachedFileDictionaryRepository(),
                                                        FromDictionary.PersonEmailAddress);
        }
 /// <summary>
 /// Generate and return a person password.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string PersonPassword(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.PersonPassword).Next());
 }
Exemple #4
0
 /// <summary>
 /// Generate and return a finance credit card type.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string FinanceCreditCardType(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.FinanceCreditCardType).Next());
 }
Exemple #5
0
 /// <summary>
 /// Generate and return a US address city name.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string City()
 {
     return(_fixture.Words(FromDictionary.AddressUsCity).Next());
 }
 /// <summary>
 /// Generate and return an identifier bitcoing address.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string BitcoinAddress()
 {
     return(_fixture.Words(FromDictionary.IdentifierBitcoinAddress).Next());
 }
Exemple #7
0
 /// <summary>
 /// Generate and return a US address state abbreviation.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string AddressUsStateAbbreviation(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.AddressUsStateAbbreviation).Next());
 }
 /// <summary>
 /// Generate and return an internet URL.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string InternetUrl(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.InternetUrl).Next());
 }
Exemple #9
0
 /// <summary>
 /// Generate and return a Colour Hex value.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string Hex()
 {
     return(_fixture.Words(FromDictionary.ColourHex).Next());
 }
 /// <summary>
 /// Generate and return a UK address company name.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string AddressUkCompany(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.AddressUkCompany).Next());
 }
 /// <summary>
 /// Generate and return a frequency.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string Frequency(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.Frequency).Next());
 }
Exemple #12
0
 /// <summary>
 /// Generate and return a person email address.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string EmailAddress()
 {
     return(_fixture.Words(FromDictionary.PersonEmailAddress).Next());
 }
 /// <summary>
 /// Generate and return a person full name.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string PersonNameFull(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.PersonNameFull).Next());
 }
 /// <summary>
 /// Generate and return a person language.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string PersonLanguage(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.PersonLanguage).Next());
 }
 /// <summary>
 /// Generate and return a person email address.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string PersonEmailAddress(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.PersonEmailAddress).Next());
 }
 /// <summary>
 /// Generate and return a finance credit card number.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public string CreditCardNumber()
 {
     return(_fixture.Words(FromDictionary.FinanceCreditCardNumber).Next());
 }
 /// <summary>
 /// Generate and return a Colour name.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string ColourName(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.ColourName).Next());
 }
 /// <summary>
 /// Generate and return a geography country name.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string GeoCountry(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.GeoCountry).Next());
 }
 /// <summary>
 /// Generate and return an internet domain country code top level domain.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string InternetDomainCountryCodeTopLevelDomain(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.InternetDomainCountryCodeTopLevelDomain).Next());
 }
 /// <summary>
 /// Generate and return a geography longitude.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string GeoLongitude(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.GeoLongitude).Next());
 }
Exemple #21
0
 /// <summary>
 /// Generate and return a US address social security number.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string AddressUsSocialSecurityNumber(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.AddressUsSocialSecurityNumber).Next());
 }
 /// <summary>
 /// Generate and return an Australian address street name.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string AddressAusStreet(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.AddressAusStreet).Next());
 }
Exemple #23
0
 /// <summary>
 /// Generate and return a US address zip code.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string AddressUsZipCode(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.AddressUsZipCode).Next());
 }
Exemple #24
0
 /// <summary>
 /// Generate and return an identifier MAC address.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string IdentifierMacAddress(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.IdentifierMacAddress).Next());
 }
Exemple #25
0
 /// <summary>
 /// Generate and return a geography continent name.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string Continent()
 {
     return(_fixture.Words(FromDictionary.GeoContinent).Next());
 }
Exemple #26
0
 /// <summary>
 /// Generate and return an internet domain country code top level domain.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string DomainCountryCodeTopLevelDomain()
 {
     return(_fixture.Words(FromDictionary.InternetDomainCountryCodeTopLevelDomain).Next());
 }
 /// <summary>
 /// Generate and return a company industry name.
 /// </summary>
 /// <returns>The generated value.</returns>
 public string Industry()
 {
     return(_fixture.Words(FromDictionary.CompanyIndustry).Next());
 }
 /// <summary>
 /// Generate and return a company location name.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string CompanyLocation(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.CompanyLocation).Next());
 }
Exemple #29
0
 /// <summary>
 /// Generate and return a finance currency code.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string FinanceCurrencyCode(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.FinanceCurrencyCode).Next());
 }
 /// <summary>
 /// Generate and return a shirt size.
 /// </summary>
 /// <param name="fixture">The fixture to generate a value for.</param>
 /// <returns>The generated value.</returns>
 public static string ShirtSize(this AnonymousValueFixture fixture)
 {
     return(fixture.Words(FromDictionary.ShirtSize).Next());
 }