Skip to content

Instantly share code, notes, and snippets.

@Schandlich
Created March 4, 2014 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schandlich/9353340 to your computer and use it in GitHub Desktop.
Save Schandlich/9353340 to your computer and use it in GitHub Desktop.
Potential Changes
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