/// <summary> /// The constructor to set the StartInfo and applicable /// AutomatedApplicationCallback delegates. /// </summary> /// <param name="startInfo"> /// Information about the test application to launch. /// </param> /// <param name="mainWindowOpened"> /// The AutomatedApplicationCallback to be called when the application's /// main window opens. /// </param> /// <param name="exited"> /// The AutomatedApplicationCallback to be called when the application /// exits. /// </param> public OutOfProcessSettings( ProcessStartInfo startInfo, AutomatedApplicationCallback mainWindowOpened, AutomatedApplicationCallback exited) { StartInfo = startInfo; MainWindowOpened = mainWindowOpened; Exited = exited; }
/// <summary> /// The constructor to set the StartInfo and applicable /// AutomationApplicationCallback delegates. /// </summary> /// <param name="path"> /// The full path to the application including the file name and /// extension. /// </param> /// <param name="applicationType"> /// The name of the application type. /// </param> /// <param name="mainWindowOpened"> /// The AutomatedApplicationCallback to be called when the application's /// main window opens. /// </param> /// <param name="exited"> /// The AutomatedApplicationCallback to be called when the application /// exits. /// </param> public InProcessSettings( string path, string applicationType, AutomatedApplicationCallback mainWindowOpened, AutomatedApplicationCallback exited) { Path = path; ApplicationType = applicationType; MainWindowOpened = mainWindowOpened; Exited = exited; }