// we use "Freeze" to kind of fake immutability for now but makes it pretty // easy to replace with "real" immutability later public ImmutableProject Freeze() { var ma = Actions.Select(mutable => mutable.Freeze()).ToList().AsReadOnly(); var info = new ImmutableProjectInfo(ProjectId, Outcome, Type, UIKey); return(new ImmutableProject(info, ma)); }
public ImmutableProject Freeze() { var ma = Actions.Select(mutable => mutable.Freeze()).ToList().AsReadOnly(); var info = new ImmutableProjectInfo(ProjectId, Outcome, Type, UIKey); return new ImmutableProject(info, ma); }
public FilteredProject(ImmutableProjectInfo info, ReadOnlyCollection<ImmutableAction> filteredActions, string actionCount) { Info = info; FilteredActions = filteredActions; ActionCount = actionCount; }
public ImmutableProject(ImmutableProjectInfo info, ReadOnlyCollection<ImmutableAction> actions) { Info = info; Actions = actions; }
public ProjectDisplayed(ImmutableProjectInfo project) { this.Project = project; }
public FilteredProject(ImmutableProjectInfo info, ReadOnlyCollection <ImmutableAction> filteredActions, string actionCount) { Info = info; FilteredActions = filteredActions; ActionCount = actionCount; }
public ImmutableProject(ImmutableProjectInfo info, ReadOnlyCollection <ImmutableAction> actions) { Info = info; Actions = actions; }