can create config from semester

This commit is contained in:
2023-01-09 20:02:22 -07:00
parent 6c91078147
commit 530613fca3
3 changed files with 43 additions and 2 deletions

View File

@@ -5,8 +5,6 @@ public class SemesterPlanner
public IEnumerable<CalendarMonth> Months { get; }
public SemesterPlanner(SemesterConfiguration configuration)
{
// var start = configuration.StartAt ?? throw new Exception($"Canvas Term must have a start date. Term: {configuration.Id}");
// var end = configuration.EndAt ?? throw new Exception($"Canvas Term must have a end date. Term: {configuration.Id}");
var start = configuration.StartDate;
var end = configuration.EndDate;