private static Dictionary <Guid, Entity> CreateUserGroups() { var domainAdmins = new UserGroup("Domain admins"); var domainUsers = new UserGroup("Domain users"); var accounting = new UserGroup("Accounting"); var sales = new UserGroup("Sales"); domainUsers.AddChildGroup(accounting); domainUsers.AddChildGroup(sales); return(new Dictionary <Guid, Entity> { { domainAdmins.Id, domainAdmins }, { domainUsers.Id, domainUsers }, { accounting.Id, accounting }, { sales.Id, sales } }); }