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