private IList <President> ToPresidents(IEnumerable <Person> peopleWhoWerePresident) { var returnValues = new List <President>(); _Adapter.Adapt(peopleWhoWerePresident, returnValues); foreach (var president in returnValues) { president.DaysInOffice = _DaysInOfficeStrategy.GetDaysInOffice (president.Terms); } return(returnValues); }
private IList<President> ToPresidents(IEnumerable<Sponsor> peopleWhoWerePresident) { var returnValues = new List<President>(); foreach (var president in returnValues) { president.DaysInOffice = _DaysInOfficeStrategy.GetDaysInOffice (president.Terms); } return returnValues; }