Skip to content

Commit fd4ae09

Browse files
author
Roman Köhler
committed
Lipsum plugin constructor with all parameters changed to be with optional parameters #64
1 parent e5f069b commit fd4ae09

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Tynamix.ObjectFiller/Plugins/String/Lipsum.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ public Lipsum()
156156
public Lipsum(LipsumFlavor lipsumFlavor)
157157
: this(lipsumFlavor, 10)
158158
{
159-
160159
}
161160

162161
/// <summary>
@@ -171,7 +170,6 @@ public Lipsum(LipsumFlavor lipsumFlavor)
171170
public Lipsum(LipsumFlavor lipsumFlavor, int minWords)
172171
: this(lipsumFlavor, minWords, 50)
173172
{
174-
175173
}
176174

177175
/// <summary>
@@ -189,7 +187,6 @@ public Lipsum(LipsumFlavor lipsumFlavor, int minWords)
189187
public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords)
190188
: this(lipsumFlavor, minWords, maxWords, 3)
191189
{
192-
193190
}
194191

195192
/// <summary>
@@ -210,7 +207,6 @@ public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords)
210207
public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords, int minSentences)
211208
: this(lipsumFlavor, minWords, maxWords, minSentences, 8)
212209
{
213-
214210
}
215211

216212
/// <summary>
@@ -234,7 +230,6 @@ public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords, int minSent
234230
public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords, int minSentences, int maxSentences)
235231
: this(lipsumFlavor, minWords, maxWords, minSentences, maxSentences, 3)
236232
{
237-
238233
}
239234

240235
/// <summary>
@@ -262,7 +257,6 @@ public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords, int minSent
262257
: this(lipsumFlavor, minWords, maxWords, minSentences, maxSentences, paragraphs, null)
263258

264259
{
265-
266260
}
267261

268262
/// <summary>
@@ -289,7 +283,7 @@ public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords, int minSent
289283
/// <param name="randomSeed">
290284
/// The seed for randomizer to get the same result with the same seed.
291285
/// </param>
292-
public Lipsum(LipsumFlavor lipsumFlavor, int minWords, int maxWords, int minSentences, int maxSentences, int paragraphs, int? randomSeed)
286+
public Lipsum(LipsumFlavor lipsumFlavor, int minWords = 10, int maxWords = 50, int minSentences = 3, int maxSentences = 8, int paragraphs = 3, int? randomSeed = null)
293287
{
294288
this.flavor = lipsumFlavor;
295289
this.paragraphs = paragraphs;

0 commit comments

Comments
 (0)