public Task Show(string markdown) { var path = fileSystemOperations.GetTempFileName() + ".md"; fileSystemOperations.WriteAllText(path, markdown); return(shellOpen.Open(path)); }
public void FileWriteAllText(string path, string contents) { FileInfo fileInfo = new FileInfo(path); CreateDirectoryAndParents(fileInfo.Directory); _fileSystemOperations.WriteAllText(path, contents); SetUnixOwnerIfNeeded(path); }