Exemplo n.º 1
0
        public void ProfessorControllerMock()
        {
            var moc = MockRepository.MockWithRemoting <IProfessorStorage>();

            moc.Expect(m => m.GetGrades(0));

            ProfessorController controler = new ProfessorController(moc);

            BaseViewModel model = new BaseViewModel();

            model.RealisationsID = 0;

            controler.GradeList(model);

            moc.VerifyAllExpectations();
        }