예제 #1
0
파일: NAuto.cs 프로젝트: getsetcode/NAuto
 /// <summary>
 /// Gets the random list with a sequenced column.
 /// </summary>
 /// <typeparam name="TModel">
 /// The type of the model.
 /// </typeparam>
 /// <param name="identityProperty">
 /// The identity property.
 /// </param>
 /// <param name="numberOfItems">
 /// The number of items.
 /// </param>
 /// <param name="seed">
 /// The seed.
 /// </param>
 /// <param name="increment">
 /// The increment.
 /// </param>
 /// <param name="autoBuilderConfiguration">
 /// The auto Builder Configuration.
 /// </param>
 /// <param name="language">
 /// The language.
 /// </param>
 /// <returns>
 /// Random list.
 /// </returns>
 public static List <TModel> GetRandomList <TModel>(Expression <Func <TModel, int> > identityProperty, int numberOfItems = 2, int seed = 1, int increment = 1, AutoBuilderConfiguration autoBuilderConfiguration = null, Language language = Language.English) where TModel : class
 {
     return(RandomListGenerator.Get(identityProperty, numberOfItems, seed, increment, autoBuilderConfiguration, language));
 }
예제 #2
0
파일: NAuto.cs 프로젝트: getsetcode/NAuto
 /// <summary>
 /// Gets the random list.
 /// </summary>
 /// <typeparam name="TModel">
 /// The type of the model.
 /// </typeparam>
 /// <param name="numberOfItems">
 /// The number of items.
 /// </param>
 /// <param name="autoBuilderConfiguration">
 /// The auto Builder Configuration.
 /// </param>
 /// <param name="language">
 /// The language.
 /// </param>
 /// <returns>
 /// Random list.
 /// </returns>
 public static List <TModel> GetRandomList <TModel>(int numberOfItems = 2, AutoBuilderConfiguration autoBuilderConfiguration = null, Language language = Language.English) where TModel : class
 {
     return(RandomListGenerator.Get <TModel>(numberOfItems, autoBuilderConfiguration, language));
 }