Ejemplo n.º 1
0
        void Start()
        {
            if (testProcess == null)
            {
                EnsureCleanState();
                string exe = typeof(Walkabout.MainWindow).Assembly.Location;

                ResignAssembly(exe);

                // find the ofx test server, this file is created by the OfxTestServer project.
                string path          = FindFileInParent(Path.GetDirectoryName(exe), "ServerConfig.txt");
                string serverExePath = File.ReadAllText(path).Trim();

                // start ofx test server
                string serverExe = Path.Combine(Path.GetDirectoryName(serverExePath), Path.GetFileNameWithoutExtension(serverExePath) + ".exe");
                serverProcess = Process.Start(new ProcessStartInfo(serverExe));
                serverProcess.WaitForInputIdle();
                ofxServerWindow = OfxServerWindowWrapper.FindMainWindow(serverProcess.Id);

                // start money
                ProcessStartInfo psi = new ProcessStartInfo(exe, "/nosettings");
                testProcess = Process.Start(psi);
                testProcess.WaitForInputIdle();
                window = MainWindowWrapper.FindMainWindow(testProcess.Id);
            }
        }
Ejemplo n.º 2
0
        void Start()
        {
            if (testProcess == null)
            {
                EnsureCleanState();
                string exe = typeof(Walkabout.MainWindow).Assembly.Location;

                ResignAssembly(exe);

                // start ofx test server
                string serverExe = typeof(OfxTestServer).Assembly.Location;
                serverProcess = Process.Start(new ProcessStartInfo(serverExe));
                serverProcess.WaitForInputIdle();
                ofxServerWindow = OfxServerWindowWrapper.FindMainWindow(serverProcess.Id);

                // start money
                ProcessStartInfo psi = new ProcessStartInfo(exe, "/nosettings");
                testProcess = Process.Start(psi);
                testProcess.WaitForInputIdle();
                window = MainWindowWrapper.FindMainWindow(testProcess.Id);
            }
        }