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