Ejemplo n.º 1
0
 public void InitializeTest()
 {
     MockLogicManager         = MockRepository.GenerateMock <ICustomFieldManager>();
     Target                   = new DataFileController(MockLogicManager);
     Target.ControllerContext = new ControllerContext(MockHttpContext, new RouteData(), Target);
     MockHttpContext.Expect(m => m.User).Return(User);
     MockHttpContext.Server.Expect(m => m.MapPath("../../App_Data/Uploads/")).Return(UploadTemplateFolderPath);
 }
 public void InitializeTest()
 {
     MockLogicManager = MockRepository.GenerateMock<ICustomFieldManager>();
     Target = new DataFileController(MockLogicManager);
     Target.ControllerContext = new ControllerContext(MockHttpContext, new RouteData(), Target);
     MockHttpContext.Expect(m => m.User).Return(User);
     MockHttpContext.Server.Expect(m => m.MapPath("../../App_Data/Uploads/")).Return(UploadTemplateFolderPath);
 }