Ejemplo n.º 1
0
 /// <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);
 }
 /// <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);
                });
        }
Ejemplo n.º 4
0
 public WebBrowser(AspNetApplication aspNetApplication)
 {
     httpClient = new HttpPlasmaClient(aspNetApplication);
 }
 public void SetUp()
 {
     _appInstance = new AspNetApplication("/", Path.GetFullPath(@".\..\..\..\web\Plasma.Sample.Web"));
 }
Ejemplo n.º 6
0
 public PlasmaDriver()
 {
     var physicalPath = Path.GetFullPath("../../../Blueprint.Web");
     webApplication = new AspNetApplication("/", physicalPath);
     NavigateTo("/");
 }
Ejemplo n.º 7
0
 public HttpPlasmaClient(AspNetApplication application)
 {
     this.application = application;
     cookieContainer = new CookieContainer(CookieCapacity);
 }
Ejemplo n.º 8
0
 public void SetUp()
 {
     _appInstance = new AspNetApplication("/", Path.GetFullPath(@".\..\..\..\web\Plasma.Sample.Web.Mvc"));
     _driver = new PlasmaDriver(_appInstance);
 }
Ejemplo n.º 9
0
 public void SetUp()
 {
     _appInstance = new AspNetApplication("/", Path.GetFullPath(@".\..\..\..\web\Plasma.Sample.Web.Mvc"));
     _driver      = new PlasmaDriver(_appInstance);
 }
Ejemplo n.º 10
0
 public WebBrowser(AspNetApplication aspNetApplication)
 {
     httpClient = new HttpPlasmaClient(aspNetApplication);
 }
Ejemplo n.º 11
0
 public PlasmaDriver(AspNetApplication aspNetApplication)
 {
     browser    = new WebBrowser(aspNetApplication);
     navigation = new PlasmaNavigation(browser);
 }
Ejemplo n.º 12
0
 public HttpPlasmaClient(AspNetApplication application)
 {
     this.application = application;
     cookieContainer  = new CookieContainer(CookieCapacity);
 }