Пример #1
0
 public static Course Random()
 {
     return(Create(CourseIdMother.Random(), CourseNameMother.Random(), CourseDurationMother.Random()));
 }
Пример #2
0
 public static Course FromRequest(CreateCourseRequest request)
 {
     return(Create(CourseIdMother.Create(request.Id), CourseNameMother.Create(request.Name), CourseDurationMother.Create(request.Duration)));
 }