Inheritance: System.MarshalByRefObject
示例#1
0
		public TestResponse Process(TestRequest request, TextWriter writer)
		{
			MonoRailTestWorkerRequest workerRequest = 
				new MonoRailTestWorkerRequest(request, appVirtualPath, appPhysicalPath, writer);

			workerRequest.Prepare();

			HttpRuntime.ProcessRequest(workerRequest);

			return workerRequest.Response;
		}
		public MonoRailTestWorkerRequest(TestRequest requestData,
		                                 String virtualAppPath,
		                                 String physicalAppPath,
		                                 TextWriter output) : base(virtualAppPath, String.Empty, output)
		{
			this.virtualAppPath = virtualAppPath;
			this.requestData = requestData;
			this.appPhysicalPath = physicalAppPath;
			this.output = output;
			this.filePath = requestData.Url;

			if (!appPhysicalPath.EndsWith(Path.DirectorySeparatorChar.ToString()))
			{
				appPhysicalPath = appPhysicalPath + Path.DirectorySeparatorChar;
			}
		}
		public virtual void Initialize()
		{			
			request = new TestRequest();
		}
示例#4
0
 public virtual void Initialize()
 {
     request = new TestRequest();
 }