Ejemplo n.º 1
0
 public TM_Rest_Direct()
 {
     //TMConfig.Current.TMSetup.UseAppDataFolder = true;									// set the TM XMl Database folder to be
     moq_HttpContext              = new API_Moq_HttpContext();
     HttpContextFactory.Context   = moq_HttpContext.httpContext();
     TmRest = new TM_REST();
 }
Ejemplo n.º 2
0
 public void Setup()
 {
     moqHttpContext   = new API_Moq_HttpContext();
     context          = HttpContextFactory.Context = moqHttpContext.httpContext();		//clean http request for each test
     context.Session["SessionID"] = userSessionId;
     handleUrlRequest = new HandleUrlRequest();
 }
Ejemplo n.º 3
0
        public Test_JavascriptCombiner()
        {
            BaseDir = "javascriptCombiner".tempDir(false);
            httpContextApi 	= new API_Moq_HttpContext(BaseDir);

            context 	= httpContextApi.httpContext();
            request  	= context.Request;
            response 	= context.Response;

            HttpContextFactory.Context = context;
        }
Ejemplo n.º 4
0
        public TM_Rest_Direct()
        {
            UserGroup.Admin.setThreadPrincipalWithRoles();
            tmXmlDatabase = new TM_Xml_Database(false);
            UserGroup.Anonymous.setThreadPrincipalWithRoles();

            TMConfig.Current.TMSetup.UseAppDataFolder = true;									// set the TM XMl Database folder to be
            moq_HttpContext                   = new API_Moq_HttpContext();
            HttpContextFactory.Context        = moq_HttpContext.httpContext();
            TmRest = new TM_REST();
        }
Ejemplo n.º 5
0
 public void Setup()
 {
     moqHttpContext   = new API_Moq_HttpContext();
     context          = HttpContextFactory.Context = moqHttpContext.httpContext();		//clean http request for each test
     handleUrlRequest = new HandleUrlRequest();
 }
Ejemplo n.º 6
0
        public static HttpContextBase request_Write_Clear(this API_Moq_HttpContext moqHttpContext)
        {
            moqHttpContext.MockRequest.Setup(request => request.InputStream).Returns(new MemoryStream());

            return(moqHttpContext.httpContext());
        }
Ejemplo n.º 7
0
 public static HttpContextBase httpContext(this API_Moq_HttpContext moqHttpContext)
 {
     return(moqHttpContext.HttpContextBase);
 }
Ejemplo n.º 8
0
 public void Setup()
 {
     moqHttpContext = new API_Moq_HttpContext();
     context = HttpContextFactory.Context = moqHttpContext.httpContext();
 }