Skip to content

Commit d305f2b

Browse files
author
Roman Köhler
committed
Reordered parameters
1 parent 24a1216 commit d305f2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tynamix.ObjectFiller/Randomizer.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,26 @@ public static IEnumerable<T> Create(int amount, Func<T> factory)
6666
}
6767

6868
return resultSet;
69-
}
69+
}
7070

7171
/// <summary>
7272
/// Creates a set of random items of the given type and will use a <see cref="IRandomizerPlugin{T}"/> for that.
7373
/// </summary>
74-
/// <param name="amount">Amount of items created.</param>
7574
/// <param name="randomizerPlugin">Plugin to use.</param>
75+
/// <param name="amount">Amount of items created.</param>
7676
/// <returns>Set of random items of the given type.</returns>
77-
public static IEnumerable<T> Create(int amount, IRandomizerPlugin<T> randomizerPlugin)
77+
public static IEnumerable<T> Create(IRandomizerPlugin<T> randomizerPlugin, int amount)
7878
{
7979
return Create(amount, () => Create(randomizerPlugin));
8080
}
8181

8282
/// <summary>
8383
/// Creates a set of random items of the given type and will use a <see cref="FillerSetup"/> for that.
8484
/// </summary>
85-
/// <param name="amount">Amount of items created.</param>
8685
/// <param name="setup">Setup to use.</param>
86+
/// <param name="amount">Amount of items created.</param>
8787
/// <returns>Set of random items of the given type.</returns>
88-
public static IEnumerable<T> Create(int amount, FillerSetup setup)
88+
public static IEnumerable<T> Create(FillerSetup setup, int amount)
8989
{
9090
return Create(amount, () => Create(setup));
9191
}
@@ -111,7 +111,7 @@ internal static Func<T> CreateFactoryMethod(FillerSetup setup)
111111
Type targetType = typeof(T);
112112
if (!Setup.TypeToRandomFunc.ContainsKey(targetType))
113113
{
114-
114+
115115
if (targetType.IsClass())
116116
{
117117
var fillerType = typeof(Filler<>).MakeGenericType(typeof(T));

0 commit comments

Comments
 (0)