Skip to content

Instantly share code, notes, and snippets.

@dzas
Created March 5, 2020 20:49
Show Gist options
  • Save dzas/b7ad98deb4c8da1e0c23f8cba65112dc to your computer and use it in GitHub Desktop.
Save dzas/b7ad98deb4c8da1e0c23f8cba65112dc to your computer and use it in GitHub Desktop.
```
var f = new Fixture();
f.Customize<GroupKKT>(ob => ob.Without(g => g.Kkts)
.Without(g => g.GroupKKTId)
.Do(g => g.GroupKKTId = f.Create<long>())
.Do(g => g.Kkts = f.Build<Kkt>()
.With(k => k.GroupKKTId, g.GroupKKTId)
.CreateMany().ToList()));
var companies = f.Build<Company>().CreateMany();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment