public VacationDateConstraint(Vacation vacation) { Vacation = vacation; }
public void RemoveVacationConstraint(Vacation vacation) { //removes all constraints based on given vacation NotAvailableConstraints.RemoveAll(c => c is VacationDateConstraint && ((VacationDateConstraint)c).Vacation == vacation); }