Пример #1
0
        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));
        }
Пример #2
-1
        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));
        }