public void GetNumberOfMatchWithDate_Returns2() { var option = _rootObject.CheckPositionDateInArray(new DateTime(2019, 10, 23)); Assert.AreEqual(2, option); }
public List <Participant> GetActiveParticipantsAt(DateTime date) { var option = _rootObject.CheckPositionDateInArray(date); return(GetParticipants().Where(x => x.preferences[option] > 0).ToList()); }