/// <summary> /// Get the path of the directory containing the executable file. /// </summary> public static string GetExecutableFileDirectoryPath(this IExecutableFilePathProvider executableFilePathProvider, IStringlyTypedPathOperator stringlyTypedPathOperator) { var executableFilePath = executableFilePathProvider.GetExecutableFilePath(); var executableFileDirectoryPath = stringlyTypedPathOperator.GetDirectoryPathForFilePath(executableFilePath); return(executableFileDirectoryPath); }
public ExecutableFileDirectoryPathProvider(IExecutableFilePathProvider executableFilePathProvider, IStringlyTypedPathOperator stringlyTypedPathOperator) { this.ExecutableFilePathProvider = executableFilePathProvider; this.StringlyTypedPathOperator = stringlyTypedPathOperator; }