/// <summary> /// Instantiates a new process contrext for inversion. /// </summary> /// <remarks>You can think of this type here as "being Inversion". This is the thing.</remarks> /// <param name="underlyingContext">The underlying http context to wrap.</param> /// <param name="services">The service container the context will use.</param> /// <param name="resources">The resources available to the context.</param> public AspNetContext(HttpContext underlyingContext, IServiceContainer services, IResourceAdapter resources) : base(services, resources) { _underlyingContext = underlyingContext; _application = this.UnderlyingContext.ApplicationInstance as AspNetApplication; _response = new AspNetResponse(this.UnderlyingContext.Response); _request = new AspNetRequest(this.UnderlyingContext.Request); }
public void TestFixtureSetUp() { Timer.Time("Plasma start", () => { string projectPath = Settings.WebProjectPath; Console.WriteLine( "Starting server for project path '{0}' . . .", projectPath); _plasmaApplication = new Plasma.Core.AspNetApplication( "/", Settings.WebProjectPath); // Make first request to ensure app is started var client = new Plasma.Http.HttpPlasmaClient(_plasmaApplication); client.Get(TestConstants.TestPath); }); }
public WebBrowser(AspNetApplication aspNetApplication) { httpClient = new HttpPlasmaClient(aspNetApplication); }
public void SetUp() { _appInstance = new AspNetApplication("/", Path.GetFullPath(@".\..\..\..\web\Plasma.Sample.Web")); }
public PlasmaDriver() { var physicalPath = Path.GetFullPath("../../../Blueprint.Web"); webApplication = new AspNetApplication("/", physicalPath); NavigateTo("/"); }
public HttpPlasmaClient(AspNetApplication application) { this.application = application; cookieContainer = new CookieContainer(CookieCapacity); }
public void SetUp() { _appInstance = new AspNetApplication("/", Path.GetFullPath(@".\..\..\..\web\Plasma.Sample.Web.Mvc")); _driver = new PlasmaDriver(_appInstance); }
public PlasmaDriver(AspNetApplication aspNetApplication) { browser = new WebBrowser(aspNetApplication); navigation = new PlasmaNavigation(browser); }