package com.karumi.holidayskata;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Team {
    private List<Employee> employees = new ArrayList<>();

    public void addMember(Employee employee) {
        employees.add(employee);
    }

    public List<Employee> membersAvailables(Date date) {
        List<Employee> availables = new ArrayList<>();
        for (Employee employee : employees) {
            if(!employee.isOnHolidays(date)) {
                availables.add(employee);
            }
        }
        return availables;
    }

    public List<Employee> membersAvailables(HolidayPeriod overlapPeriod) {
        return null;
    }
}

@@ -321,24 +321,211 @@
 ate date) %7B%0A
+        HolidayPeriod holidayPeriod = new HolidayPeriod(date);%0A        return membersAvailables(holidayPeriod);%0A    %7D%0A%0A    public List%3CEmployee%3E membersAvailables(HolidayPeriod period) %7B%0A
         List
@@ -651,20 +651,22 @@
 olidays(
-date
+period
 )) %7B%0A   
@@ -764,110 +764,7 @@
    %7D
-%0A%0A    public List%3CEmployee%3E membersAvailables(HolidayPeriod overlapPeriod) %7B%0A        return null;%0A    %7D
 %0A%7D%0A

return enables employees for a holidays period