public Person(int id, string externalId, State state, WorkSchedule workSchedule, bool[] availabilities, Dictionary <int, ShiftRequest> shiftRequests) { Id = id; ExternalId = externalId; State = state ?? throw new ArgumentNullException(nameof(state)); WorkSchedule = workSchedule ?? throw new ArgumentNullException(nameof(workSchedule)); Availabilities = availabilities ?? throw new ArgumentNullException(nameof(availabilities)); ShiftRequests = shiftRequests ?? throw new ArgumentNullException(nameof(shiftRequests)); Assignments = new AssignmentsCollection(); }
public void Restore(AssignmentsCollection collection) { _allRounds = collection._allRounds; _latestRound = collection._latestRound; _previousAssignments = collection._previousAssignments; }