This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
choco install Everything | |
choco install Console2 | |
choco install launchy | |
choco install keepass | |
choco install dropbox | |
choco install lightshot | |
choco install fiddler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using RestSharp; | |
using RestSharp.Contrib; | |
using RestSharp.Deserializers; | |
namespace ReshSharpTrials | |
{ | |
internal static class Program | |
{ | |
private static void Main(string[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
AttachConsole(-1); | |
Console.WriteLine(); | |
// Rest of your code | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
using System.IO; | |
using System.Linq; | |
using System.Diagnostics; | |
class Script | |
{ | |
static public void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
djsjfk | |
fkdkfldkl | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO.Abstractions; | |
public class CleanFileCopier | |
{ | |
private readonly IFileSystem _fileSystem; | |
public CleanFileCopier(): this(new FileSystem()) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
public class LegacyFileCopier | |
{ | |
public void CopyFile(string sourceFilePath, string destinationDirectoryPath) | |
{ | |
if (!Directory.Exists(destinationDirectoryPath)) | |
{ | |
Directory.CreateDirectory(destinationDirectoryPath); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace System.IO.Abstractions | |
{ | |
public interface IFileSystem | |
{ | |
FileBase File { get; } | |
DirectoryBase Directory { get; } | |
IFileInfoFactory FileInfo { get; } | |
PathBase Path { get; } | |
IDirectoryInfoFactory DirectoryInfo { get; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO.Abstractions; | |
public class CleanFileCopier | |
{ | |
private readonly IFileSystem _fileSystem; | |
public CleanFileCopier(): this(new FileSystem()) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace System.IO.Abstractions.TestingHelpers | |
{ | |
[Serializable] | |
public class MockFileSystem : IFileSystem, IMockFileDataAccessor | |
{ | |
#region Implementation of IFileSystem | |
#endregion | |
public IEnumerable<string> AllPaths |
OlderNewer