Exemple #1
0
 /// <summary>
 ///     used to restore the aggregation
 /// </summary>
 /// <param name="state"></param>
 /// <returns></returns>
 /// <exception cref="ArgumentException"></exception>
 public static Activity FromState(ActivityState state)
 {
     return(Activity.From(Description.From(state.Description), EntityId.From(state.ActivityId),
                          EntityId.From(state.ProjectId), ActivityStatus.From(state.Status)));
 }
 /// <summary>
 ///     creating new aggregation as design by business based on business concepts
 /// </summary>
 /// <param name="descr"></param>
 /// <param name="project"></param>
 /// <param name="entityId"></param>
 /// <returns></returns>
 public static ActivityAggregationRoot CreateFrom(Description descr, EntityId entityId, Project project)
 {
     return(new ActivityAggregationRoot(descr, entityId, project, ActivityStatus.From(1)));
 }