Example #1
0
 public CoursesCounter(CoursesCounterId id, CoursesCounterTotal total, List <CourseId> existingCourses = null)
 {
     Id              = id;
     Total           = total;
     ExistingCourses = existingCourses ?? new List <CourseId>();
 }
Example #2
0
 public static CoursesCounter Initialize(CoursesCounterId id)
 {
     return(new CoursesCounter(id, CoursesCounterTotal.Initialize()));
 }