Exemplo n.º 1
0
        public static CoursesCounter Random()
        {
            List <CourseId> existingCourses = ListMother <CourseId> .Random(CourseIdMother.Random);

            return(Create(
                       CoursesCounterIdMother.Random(),
                       CoursesCounterTotalMother.Create(existingCourses.Count),
                       existingCourses
                       ));
        }
Exemplo n.º 2
0
 public static CoursesCounter WithOne(CourseId courseId)
 {
     return(Create(CoursesCounterIdMother.Random(), CoursesCounterTotalMother.One(), ListMother <CourseId> .One(courseId)));
 }