Created
March 4, 2014 19:06
-
-
Save Schandlich/9353340 to your computer and use it in GitHub Desktop.
Potential Changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stereotype = StereotypeBuilder.Build() | |
.WithStereotypes(c => | |
{ | |
c.RegisterStereotype<Product>(s => s.RegisterGenerator<Guid>((existingValue) => Guid.NewGuid()) | |
.RegisterGenerator<int>((existingValue) => StandardGenerators.Current.GenerateInt())); | |
}); | |
var list = new List<Product>(); | |
for (int i = 0; i < 2000; i++) | |
{ | |
list.Add(stereotype.Fill<Product>(new Product())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment