Beispiel #1
0
 public Team ToModel()
 {
     return(new Team(
                ToModelName(),
                UserRefs.EnsureNotNull().Select(ur => new ElementReference(ur)),
                ExternalSecurityGroupIds.EnsureNotNull(),
                UserRoleRefs.EnsureNotNull().Select(urr => new ElementReference(urr)),
                ProjectRefs.EnsureNotNull().Select(pr => new ElementReference(pr)),
                EnvironmentRefs.EnsureNotNull().Select(er => new ElementReference(er))));
 }
Beispiel #2
0
 public IReadOnlyCollection <string> ExcludeProjectRefs(IReadOnlyCollection <string> excludedProjects)
 {
     string[] removedRefs = ProjectRefs.Intersect(excludedProjects).ToArray();
     ProjectRefs = ProjectRefs.Except(removedRefs).ToHashSet();
     return(removedRefs);
 }