public void Test_FocusNavigator_FocusFirstItem()
        {
            var input          = GetMockData();
            var focusNavigator = new FocusNavigator(input);

            focusNavigator.FocusFirstItem();
            Assert.IsTrue(input[0].IsFocused);
        }
 public SubjectListModel(List <SubjectModel> subjectModels, Func <Slot[], List <List <Slot> > > permutator = null,
                         ITaskRunnerWithProgressFeedback taskRunner = null)
 {
     _subjectModels           = subjectModels;
     _subjectSelectionManager = new SubjectSelectionManager(subjectModels, permutator, taskRunner);
     _subjectSelectionManager.SelectedSubjectCountChanged +=
         _subjectSelectionManager_SelectedSubjectCountChanged;
     _subjectSelectionManager.NewListOfTimetablesGenerated +=
         _subjectSelectionManager_NewListOfTimetablesGenerated;
     foreach (var subjectModel in _subjectModels)
     {
         _nameAndCodeOfAllSubjects.Add(subjectModel.Name);
         _nameAndCodeOfAllSubjects.Add(subjectModel.Code);
     }
     _focusNavigator = new FocusNavigator(new List <IFocusable>(_subjectModels));
     _focusNavigator.FocusFirstItem();
 }