public CustomizeForEachTests() { spy = new Spy(); domainGenerator = new DomainGenerator() .OneToMany <Category, Product>(1, (l, r) => { l.Products.Add(r); r.MyCategory = l; }) .ForEach <IThing>(thing => spy.Check(thing)); }
public CustomizeForEachTests() { spy = new Spy(); domainGenerator = new DomainGenerator() .OneToMany<Category, Product>(1, (l, r) => { l.Products.Add(r); r.MyCategory = l; }) .ForEach<IThing>(thing => spy.Check(thing)); }