Data generators

BizDataX Designer offers an array of already implemented, ready to use data generators.

While most of the implementations provide generic data, some are used to generate data that is only relevant to a specific country. If none of these generators provide what you need, you can create a custom generator.

Generator Class name Description
Business name generator BusinessNameGenerator Uses provided country code to generate country-specific business names or, if no country code was provided, general business names.
Credit card number generator CreditCardNumberGenerator Generates credit card numbers of specific type or, if no type was provided, of any type.
Digit generator DigitGenerator Generates random numbers with specific number of digits.
Generator with conversion GeneratorWithConversion Uses conversion function on values generated by provided internal generator to produce result.
IBAN generator IBANGenerator Uses provided BBAN generator to produce IBANs.
Items generator ItemsGenerator Generates items of specific type by enumerating them from a provided list of items.
Random items generator ItemsInRandomOrderGenerator Generates items of specific type by randomly selecting them from a provided list of items.
Merge generator MergeGenerator Merges results of internal generators using provided separator.
Numbered string generator NumberedStringGenerator Generates strings by formating numbers using provided format string. Specific number generator can, but doesn't have to be provided.
Number sequence generator NumberSequenceGenerator Generates sequence by starting from a provided value and incrementing it by defined amount.
Phone number generator PhonenumberGenerator Uses provided country code to generate phone numbers, or if no country code was provided, general phone numbers. Specific number of digits, or minimum and maximum, can be provided.
Random DateTime generator RandomDateTimeGenerator Generates random DateTime from provided base DateTime within specified offset or random DateTime within DateTime minimum and maximum. Can be used to generate only Date.
Random number generator RandomNumberGenerator Generates random numbers from a range.
Unique random number generator UniqueRandomNumberGenerator Generates unique random number from a range.
Unique random 64-bit number generator UniqueRandomNumberGenerator64 Generates unique random 64-bit number from range.

Country-specific data generators

Country specific generators currently support Croatia, Germany, Switzerland and United States of America. In order to use them correct namespace must be imported using steps as follows:

  • Create BizDataX Package (Visual Studio project)
  • From the Solution Explorer open Package.xaml file
  • Locate Imports tab at the bottom of the screen and open it
  • Search for Ekobit.BizDataX.DataMasking.DataGenerators.<supported_country_code> and click on it to import it to project
  • Close Imports tab

Croatian data generators

Generator Class name Description
Bank Account generator BankAccountGeneratorHr Uses provided two-digit account type to generate Croatian bank account numbers. Provides in-bank account numbers only.
BBAN generator BBANGeneratorHr Uses provided bank code to generate Croatian bank account numbers or, if no code was provided, general Croatian bank account numbers.
JMBG generator JMBGGenerator Generates random JMBG numbers for people of provided gender, or if no gender was provided, of any gender.
Generator maticnog broja MaticniBrojGenerator Generates maticni broj.
OIB generator OIBGenerator Generates OIB numbers.
Generator poreznog broja PorezniBrojGenerator Generates porezni broj. Internal generator can be provided to generate first 7 digits.

German data generators

Generator Class name Description
BBAN generator BBANGeneratorDe Uses provided bank code to generate German bank account numbers, or if no code was provided general German bank account numbers.

Swiss data generators

Generator Class name Description
AHV generator AHVGenerator Generates Swiss AHV numbers.
BBAN generator BBANGeneratorCh Uses provided bank code to generate Swiss bank account numbers or, if no code was provided, general Swiss bank account numbers.

US data generators

Generator Class name Description
Social security number generator USSocialSecurityNumberGenerator Generates United States social security number.

Example

This is an example in which database field will be masked using unique random number generator. Every time this masking is executed, the value in "Csc" column of the target database will be replaced with newly generated, unique and random number.

Preconditions

Steps

  1. From the Solution Explorer open the Package.xaml file
  2. Delete the workflow created by default
  3. Drag the Sequence activity from the Toolbox into the opened Package.xaml
  4. Drag the CreditCard_Activity from the Toolbox into the Sequence activity. A Masking engine with Credit card iterator, Credit card handler and Masking block is created inside the sequence
  5. Drag the Generate value masking activity from the Toolbox into the created Masking block
  6. In the Select Types pop-up window choose Int32
  7. In the Generate value masking activity, select Csc as the "Property"
  8. Set "Value generator" field to:
new UniqueRandomNumberGenerator(100, 999)
  1. Build solution by pressing Build -> Build Solution
  2. Start the masking process by pressing Start</supported_country_code>