예제 #1
0
        private static List <T> BuildList <T>(int itemCount) where T : new()
        {
            var result = new List <T>();

            for (int i = 0; i < itemCount; i++)
            {
                result.Add(Angie.FastMake <T>());
            }

            return(result);
        }
예제 #2
0
 public AngieShortConfigurator(Angie angie, Maggie maggie, PropertyInfo propertyInfo)
     : base(angie, maggie)
 {
     _propertyInfo = propertyInfo;
 }
예제 #3
0
 public static List <T> FastList <T>(int count) where T : new()
 {
     return(Angie.FastList <T>(count));
 }
예제 #4
0
 public static List <T> FastList <T>() where T : new()
 {
     return(Angie.FastList <T>());
 }
예제 #5
0
 /// <summary>
 /// Create a new object
 /// </summary>
 /// <typeparam name="T">The target object type</typeparam>
 /// <returns>An object filled with random data</returns>
 public T Make <T>() where T : new()
 {
     return(Angie.FastMake <T>());
 }
예제 #6
0
 /// <summary>
 /// Fill an existing object with random data
 /// </summary>
 /// <typeparam name="T">The target object type</typeparam>
 /// <param name="instance">The instance to fill</param>
 /// <returns>The instance filled with random data</returns>
 public static T FastFill <T>(T instance)
 {
     return(Angie.FastFill(instance));
 }
예제 #7
0
 public AngieConfigurator(Angie angie, FillerManager maggie)
 {
     _angie         = angie;
     _fillerManager = maggie;
 }
 public AngieComplexPropertyConfigurator(Angie angie, FillerManager fillerManager, MemberInfo propertyInfo)
     : base(angie, fillerManager)
 {
     _propertyInfo = propertyInfo;
 }
예제 #9
0
 public AngieComplexPropertyConfigurator(Angie angie, Maggie maggie, PropertyInfo propertyInfo)
     : base(angie, maggie)
 {
     _propertyInfo = propertyInfo;
 }
예제 #10
0
 public AngieDefaulturator(Angie angie, FillerManager maggie)
 {
     _angie         = angie;
     _fillerManager = maggie;
 }
예제 #11
0
 public AngieDefaulturator(Angie angie, Maggie maggie)
 {
     _angie  = angie;
     _maggie = maggie;
 }
예제 #12
0
 public AngieConfigurator(Angie angie, Maggie maggie)
 {
     _angie  = angie;
     _maggie = maggie;
 }