public static void WriteIntrospectionToFile(this IServiceBus bus, string fileName) { DiagnosticsProbe probe = bus.Probe(); var fs = new DotNetFileSystem(); fs.DeleteFile(fileName); fs.Write(fileName, probe.ToString()); }
public void We_Write_a_file() { fs = new DotNetFileSystem(); fs.Write(filePath, contents); var f = new DotNetFile(FileName.GetFileName(@".\temp.txt")); f.CopyTo(FileName.GetFileName(@".\copy.txt")); }
public void GivenADirectoryWithAFile() { _fs = new DotNetFileSystem(); _dir = new DotNetDirectory(DirectoryName.GetDirectoryName("bob")); var file = _dir.GetChildFile("test.txt"); _fs.CreateDirectory(_dir); _fs.CreateFile(file); }
public void We_Write_a_file() { fs = new DotNetFileSystem(); fs.Write(filePath, contents); }