public void GivenLogicManagerGeneratesViewModel_WhenSelector_ThenViewModelInResult()
        {
            GradeSelectorModel expected = new GradeSelectorModel();
            MockLogicManager.Expect(m => m.GenerateGradeSelectorViewModel()).Return(expected);

            PartialViewResult result = Target.Selector();

            result.AssertGetViewModel(expected);
        }
 public GradeSelectorModel GenerateGradeSelectorViewModel()
 {
     var viewModel = new GradeSelectorModel();
     viewModel.Grades = new MultiSelectList(StudentRepository.Items.Select(g => g.Grade).Distinct());
     return viewModel;
 }