You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
572 B
C#

namespace CommanderApp.Services;
public class MockPathHelper : IPathHelper
{
public string MockHomePath { get; set; } = "/mock/home";
public string MockRootPath { get; set; } = "/mock/root";
public string GetUserHomePath() => MockHomePath;
public string GetRootPath() => MockRootPath;
public string CombinePaths(params string[] paths) => string.Join("/", paths);
public string GetFileName(string path) => System.IO.Path.GetFileName(path);
public string GetDirectoryName(string path) => System.IO.Path.GetDirectoryName(path) ?? string.Empty;
}