コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }