/** * Returns a List with random but syntactically valid Kontonummer instances * for a given AccountType. * * @param accountType * A String representing the AccountType to use for all * Kontonummer instances * @param length * Specifies the number of Kontonummer instances to create in the * returned List * @return A List with Kontonummer instances */ public static List <Kontonummer> GetKontonummerListForAccountType(string accountType, int length) { KontonummerValidator.ValidateAccountTypeSyntax(accountType); return(GetKontonummerListUsingGenerator(new AccountTypeKontonrDigitGenerator(accountType), length)); }
/// <param name="kontogruppeNummer">A String representing the AccountType to use for all Kontonummer instances</param> /// <param name="length">Specifies the number of Kontonummer instances to create in the returned List</param> /// <returns>A list with random, but syntactically valid, Kontonummer instances for a given kontogruppe.</returns> public static IEnumerable <Kontonummer> GetKontonummerListForAccountType(string kontogruppeNummer, int length) { KontonummerValidator.ValidateAccountTypeSyntax(kontogruppeNummer); return(CreateKontonummerWithGenerator(length, kontogruppeNummer: kontogruppeNummer)); }