/// <inheritdoc /> public void Start() { //The SetCurrentDirectory() trick //is needed in both Fake and Real //In both cases it allows the app to correctly read its modules //as Solid.Composition uses Directory.GetCurrentDirectory() internally //to locate the root folder //In Fake case it also allows correct builder serialization location var testDirectory = Directory.GetCurrentDirectory(); var applicationPath = Path.Combine(testDirectory, _applicationPathInfo.RelativePath, _applicationPathInfo.Executable); var applicationDirectory = Path.GetDirectoryName(applicationPath); Directory.SetCurrentDirectory(applicationDirectory); _startApplicationService.Start(applicationPath); Directory.SetCurrentDirectory(testDirectory); }
/// <inheritdoc /> public void Start() { _startApplicationService.Start(string.Empty); }
public void Start() { _startApplicationService.Start(_applicationPathInfo.Executable); }