Пример #1
0
 /// <summary>
 /// A configurable application is a generic application that can be started using a given exe and exe args.
 /// </summary>
 /// <param name="path">The path of the directory where the exe is located</param>
 /// <param name="appConfig">exe name, args, etc.</param>
 /// <param name="processFactory">A factory to create a process to run the exe</param>
 /// <param name="processStopper">Used to stop a process</param>
 public ConfigurableApplication(string path, ApplicationConfig appConfig, IProcessFactory processFactory, IProcessStopper processStopper) 
     : base(appConfig.Identity, path)
 {
     _appConfig = appConfig;
     _processFactory = processFactory;
     _processStopper = processStopper;
 }
Пример #2
0
 public static void ClassInitialize(TestContext cont)
 {
     _appIdentity = new AppIdentity("id", new Version("1.0.0"));
     _appConfig = new ApplicationConfig(_appIdentity, ExeName, TestExeArgs);
 }