Beispiel #1
0
 public ApplicationDetails(ApplicationDetails applicationDetails)
 {
     ApplicationId   = applicationDetails.ApplicationId;
     ApplicationName = applicationDetails.ApplicationName;
     CategoryName    = applicationDetails.CategoryName;
     CourseTopicId   = applicationDetails.CourseTopicId;
     CourseTopic     = applicationDetails.CourseTopic;
     PLAssess        = applicationDetails.PLAssess;
     DiagAssess      = applicationDetails.DiagAssess;
     CreatedDate     = applicationDetails.CreatedDate;
 }
Beispiel #2
0
 public ApplicationWithSections(
     ApplicationDetails applicationDetails,
     IEnumerable <Section> sections,
     double popularityRating
     ) : base(applicationDetails)
 {
     Sections  = sections;
     TotalMins = Sections.Sum(
         section => section.Tutorials.Sum(
             tutorial => (tutorial.OverrideTutorialMins > 0 ? tutorial.OverrideTutorialMins : tutorial.AverageTutMins) ?? 0
             )
         );
     PopularityRating = popularityRating;
 }