public ExternalProcessManager(ITemporaryStorageManager temporaryStorageManager,
                               IEnvironmentManager environmentManager)
 {
     executableSourcePath         = temporaryStorageManager.CreateFilePath("ExternalApp.exe");
     workingDirectoryPath         = temporaryStorageManager.TemporaryDirectoryPath;
     this.temporaryStorageManager = temporaryStorageManager;
     this.environmentManager      = environmentManager;
 }
        private static ExternalProcessManager CreateExternalProcessManager(ITemporaryStorageManager storageManager,
                                                                           bool is64Bit)
        {
            Mock <IEnvironmentManager> environmentManagerMock = new Mock <IEnvironmentManager>();

            environmentManagerMock.SetupGet(mock => mock.Is64Bit).Returns(is64Bit);
            IEnvironmentManager environmentManager = environmentManagerMock.Object;

            return(new ExternalProcessManager(storageManager, environmentManager));
        }
 private static ExternalProcessManager CreateExternalProcessManager(ITemporaryStorageManager storageManager)
 {
     return(CreateExternalProcessManager(storageManager, Environment.Is64BitOperatingSystem));
 }