Пример #1
0
        public static CoursesCounter Random()
        {
            List <CourseId> existingCourses = ListMother <CourseId> .Random(CourseIdMother.Random);

            return(Create(
                       CoursesCounterIdMother.Random(),
                       CoursesCounterTotalMother.Create(existingCourses.Count),
                       existingCourses
                       ));
        }
Пример #2
0
 public static CoursesCounter WithOne(CourseId courseId)
 {
     return(Create(CoursesCounterIdMother.Random(), CoursesCounterTotalMother.One(), ListMother <CourseId> .One(courseId)));
 }