public static CoursesCounter Incrementing(CoursesCounter existingCounter, CourseId courseId)
        {
            List <CourseId> coursesId = existingCounter.ExistingCourses;

            coursesId.Add(courseId);

            return(Create(existingCounter.Id, CoursesCounterTotalMother.Create(existingCounter.Total.Value + 1), coursesId));
        }
 public static CoursesCounter Random()
 {
     return(Create(CoursesCounterIdMother.Random(), CoursesCounterTotalMother.Random(), Repeater <CourseId> .Random(CourseIdMother.Random).ToList()));
 }
 public static CoursesCounter WithOne(CourseId courseId)
 {
     return(Create(CoursesCounterIdMother.Random(), CoursesCounterTotalMother.One(), new List <CourseId> {
         courseId
     }));
 }
 public static CoursesCounterIncrementedDomainEvent Random()
 {
     return(Create(CoursesCounterIdMother.Random(), CoursesCounterTotalMother.Random()));
 }