Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public AngieShortConfigurator(Angie angie, Maggie maggie, PropertyInfo propertyInfo)
     : base(angie, maggie)
 {
     _propertyInfo = propertyInfo;
 }
Ejemplo n.º 3
0
 public static List <T> FastList <T>(int count) where T : new()
 {
     return(Angie.FastList <T>(count));
 }
Ejemplo n.º 4
0
 public static List <T> FastList <T>() where T : new()
 {
     return(Angie.FastList <T>());
 }
Ejemplo n.º 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>());
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 9
0
 public AngieComplexPropertyConfigurator(Angie angie, Maggie maggie, PropertyInfo propertyInfo)
     : base(angie, maggie)
 {
     _propertyInfo = propertyInfo;
 }
Ejemplo n.º 10
0
 public AngieDefaulturator(Angie angie, FillerManager maggie)
 {
     _angie         = angie;
     _fillerManager = maggie;
 }
Ejemplo n.º 11
0
 public AngieDefaulturator(Angie angie, Maggie maggie)
 {
     _angie  = angie;
     _maggie = maggie;
 }
Ejemplo n.º 12
0
 public AngieConfigurator(Angie angie, Maggie maggie)
 {
     _angie  = angie;
     _maggie = maggie;
 }