/// <summary> /// Gets the running application that corresponds to the provided application host. /// </summary> /// <param name="applicationHost">The application host.</param> /// <returns>Matching application instance.</returns> public virtual TestApplication GetRunningApplication(TestApplicationHost applicationHost) { if (applicationHost == null) { throw new ArgumentNullException("applicationHost"); } return((TestApplication)this.ApplicationManager.GetObject(applicationHost.ApplicationId, this.TestApplicationType)); }
/// <summary> /// Starts application from the application host definition. /// </summary> /// <param name="applicationHost">The application host.</param> /// <returns>Instance of test application.</returns> public virtual TestApplication StartApplication(TestApplicationHost applicationHost) { if (applicationHost == null) { throw new ArgumentNullException("applicationHost"); } this.EnsureGlobalInitializationIsPerformed(); return((TestApplication)this.ApplicationManager.CreateObject(applicationHost.ApplicationId, this.TestApplicationType, applicationHost.VirtualPath, Path.GetFullPath(applicationHost.PhysicalPath), false, true)); }
/// <summary> /// Starts application from the application host definition. /// </summary> /// <param name="applicationHost">The application host.</param> /// <returns>Instance of test application.</returns> public virtual TestApplication StartApplication(TestApplicationHost applicationHost) { if (applicationHost == null) { throw new ArgumentNullException("applicationHost"); } this.EnsureGlobalInitializationIsPerformed(); return (TestApplication)this.ApplicationManager.CreateObject(applicationHost.ApplicationId, this.TestApplicationType, applicationHost.VirtualPath, Path.GetFullPath(applicationHost.PhysicalPath), false, true); }
/// <summary> /// Gets the running application that corresponds to the provided application host. /// </summary> /// <param name="applicationHost">The application host.</param> /// <returns>Matching application instance.</returns> public virtual TestApplication GetRunningApplication(TestApplicationHost applicationHost) { if (applicationHost == null) { throw new ArgumentNullException("applicationHost"); } return (TestApplication)this.ApplicationManager.GetObject(applicationHost.ApplicationId, this.TestApplicationType); }