コード例 #1
0
        public static ParsedCsvCourseRow FromCsvCourseRow(CsvCourseRow row, IEnumerable <Region> allRegions)
        {
            var parsedRow = row.Adapt(new ParsedCsvCourseRow());

            parsedRow.ResolvedDeliveryMode      = ResolveDeliveryMode(parsedRow.DeliveryMode);
            parsedRow.ResolvedStartDate         = ResolveStartDate(parsedRow.StartDate);
            parsedRow.ResolvedFlexibleStartDate = ResolveFlexibleStartDate(parsedRow.FlexibleStartDate);
            parsedRow.ResolvedNationalDelivery  = ResolveNationalDelivery(parsedRow.NationalDelivery, parsedRow.SubRegions);
            parsedRow.ResolvedCost              = ResolveCost(parsedRow.Cost);
            parsedRow.ResolvedDuration          = ResolveDuration(parsedRow.Duration);
            parsedRow.ResolvedDurationUnit      = ResolveDurationUnit(parsedRow.DurationUnit);
            parsedRow.ResolvedStudyMode         = ResolveStudyMode(parsedRow.StudyMode);
            parsedRow.ResolvedAttendancePattern = ResolveAttendancePattern(parsedRow.AttendancePattern);
            parsedRow.ResolvedSubRegions        = ResolveSubRegions(parsedRow.SubRegions, allRegions);
            return(parsedRow);
        }