Exemple #1
0
 /// <summary>
 /// Numbers the of complex types.
 /// </summary>
 /// <param name="gen">Model Generator</param>
 /// <param name="minComplexTypesInModel">The min complex types in model.</param>
 /// <returns>Returns Model Generator</returns>
 public static ModelGenerator NumberOfComplexTypes(this ModelGenerator gen, int minComplexTypesInModel)
 {
     gen.SetGoal(new NumberOfComplexTypesGoal(minComplexTypesInModel));
     return(gen);
 }
Exemple #2
0
 /// <summary>
 /// NumberOfComplexPropertiesPerEntityGoal Extension Method
 /// </summary>
 /// <param name="gen">Model Generator</param>
 /// <param name="min">Minimum number of complex properties per entity</param>
 /// <param name="max">Maximum number of complex properties per entity</param>
 /// <param name="random">Random number generator</param>
 /// <returns>Returns Model Generator</returns>
 public static ModelGenerator NumberOfComplexPropertiesPerEntity(this ModelGenerator gen, int min, int max, IRandomNumberGenerator random)
 {
     gen.SetGoal(new NumberOfComplexPropertiesPerEntityGoal(min, max, random));
     return(gen);
 }
Exemple #3
0
 /// <summary>
 /// NumberOfKeyPropertiesPerEntity Extension Method
 /// </summary>
 /// <param name="gen">Model Generator</param>
 /// <param name="maxKeysPerEntity">Max Number of key properties per entity</param>
 /// <param name="minKeysPerEntity">Min Number of key properties per entity</param>
 /// <param name="random">Random Number</param>
 /// <returns>Returns Model Generator</returns>
 public static ModelGenerator NumberOfKeyPropertiesPerEntity(this ModelGenerator gen, int maxKeysPerEntity, int minKeysPerEntity, IRandomNumberGenerator random)
 {
     gen.SetGoal(new NumberOfKeysPerEntityGoal(maxKeysPerEntity, minKeysPerEntity, random));
     return(gen);
 }
Exemple #4
0
 /// <summary>
 /// Numbers the of properties per complex types.
 /// </summary>
 /// <param name="gen">The Model Generator.</param>
 /// <param name="minPropertiesPerComplexType">Type of the min properties per complex.</param>
 /// <returns>Model Generator</returns>
 public static ModelGenerator NumberOfPropertiesPerComplexTypes(this ModelGenerator gen, int minPropertiesPerComplexType)
 {
     gen.SetGoal(new NumberOfPropertiesPerComplexTypeGoal(minPropertiesPerComplexType));
     return(gen);
 }
Exemple #5
0
 /// <summary>
 /// NumberOfKeyPropertiesPerEntity Extension Method
 /// </summary>
 /// <param name="gen">Model Generator</param>
 /// <param name="minKeyPropertiesPerEntity">Number of key properties per entity</param>
 /// <returns>Returns Model Generator</returns>
 public static ModelGenerator NumberOfKeyPropertiesPerEntity(this ModelGenerator gen, int minKeyPropertiesPerEntity)
 {
     gen.SetGoal(new NumberOfKeysPerEntityGoal(minKeyPropertiesPerEntity));
     return(gen);
 }
Exemple #6
0
 /// <summary>
 /// NumberOfEntities Extension method
 /// </summary>
 /// <param name="gen">Model Generator</param>
 /// <param name="minEntities">Minimum number of entities per model</param>
 /// <returns>Returns Model Generator</returns>
 public static ModelGenerator NumberOfEntities(this ModelGenerator gen, int minEntities)
 {
     gen.SetGoal(new NumberOfEntitiesGoal(minEntities));
     return(gen);
 }
Exemple #7
0
 /// <summary>
 /// Number of the inheritance siblings
 /// </summary>
 /// <param name="gen">Model generator</param>
 /// <param name="minNumberOfSiblings">Minimum number of inheritance siblings.</param>
 /// <returns>Returns Model Generator</returns>
 public static ModelGenerator NumberOfInheritanceSiblings(this ModelGenerator gen, int minNumberOfSiblings)
 {
     gen.SetGoal(new NumberOfInheritanceSiblingsGoal(minNumberOfSiblings));
     return(gen);
 }