public void InitializeTest() { MockLogicManager = MockRepository.GenerateMock<ISchoolDistrictManager>(); Target = new GradeController(MockLogicManager); Target.ControllerContext = new ControllerContext(MockHttpContext, new RouteData(), Target); MockHttpContext.Expect(m => m.User).Return(User); }
public void InitializeTest() { MockLogicManager = MockRepository.GenerateMock <ISchoolDistrictManager>(); Target = new GradeController(MockLogicManager); Target.ControllerContext = new ControllerContext(MockHttpContext, new RouteData(), Target); MockHttpContext.Expect(m => m.User).Return(User); }