Example #1
0
            // 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));
            }
Example #2
0
 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);
 }
Example #3
0
 public FilteredProject(ImmutableProjectInfo info, ReadOnlyCollection<ImmutableAction> filteredActions, string actionCount)
 {
     Info = info;
     FilteredActions = filteredActions;
     ActionCount = actionCount;
 }
Example #4
0
 public ImmutableProject(ImmutableProjectInfo info, ReadOnlyCollection<ImmutableAction> actions)
 {
     Info = info;
     Actions = actions;
 }
Example #5
0
 public ProjectDisplayed(ImmutableProjectInfo project)
 {
     this.Project = project;
 }
Example #6
0
 public FilteredProject(ImmutableProjectInfo info, ReadOnlyCollection <ImmutableAction> filteredActions, string actionCount)
 {
     Info            = info;
     FilteredActions = filteredActions;
     ActionCount     = actionCount;
 }
Example #7
0
 public ImmutableProject(ImmutableProjectInfo info, ReadOnlyCollection <ImmutableAction> actions)
 {
     Info    = info;
     Actions = actions;
 }