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(); }