Skip to content

Commit d3c39b8

Browse files
committed
Update README.md
1 parent ad391c4 commit d3c39b8

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ The **.NET ObjectFiller** also supports IEnumerable<T> (and all derivations) and
2424
- [Mix all up](#mix-all-up)
2525
- [MnemonicStringPlugin](#mnemonicstringplugin)
2626
- [RealNamePlugin](#realnameplugin)
27-
- [RandomListItem - Plugin](#randomlistitem---plugin)
27+
- [RandomListItem Plugin](#randomlistitem---plugin)
2828
- [PatternGenerator Plugin](#patterngenerator-plugin)
29+
- [Lorem Ipsum String Plugin](#lorem-ipsum-string-plugin)
2930
- [Write your own plugin](#write-your-own-plugin)
3031
- [Thank you](#thank-you-for-using-objectfillernet)
3132

@@ -520,6 +521,32 @@ The pattern generator can be extended, to allow combining built-in expressions a
520521
}
521522
```
522523

524+
###Lorem Ipsum String Plugin
525+
526+
The "Lorem Ipsum" plugin generates some random text which contains the famous "Lorem Ipsum" text. Read more about the Lorem Ipsum [here](http://en.wikipedia.org/wiki/Lorem_ipsum)
527+
528+
```csharp
529+
public class Person
530+
{
531+
public string Name { get; set; }
532+
public string LastName { get; set; }
533+
public int Age { get; set; }
534+
public DateTime Birthday { get; set; }
535+
}
536+
537+
public class HelloFiller
538+
{
539+
public void FillPerson()
540+
{
541+
ObjectFiller<Person> pFiller = new ObjectFiller<Person>();
542+
pFiller.Setup()
543+
.RandomizerForType(new LoremIpsumPlugin(500));
544+
545+
Person filledPerson = pFiller.Fill();
546+
}
547+
}
548+
```
549+
This example generates a Lorem Ipsum text with 500 words for all ```string``` properties of the person.
523550

524551
###Write your own plugin
525552

0 commit comments

Comments
 (0)