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); }
/// <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>()); }