コード例 #1
0
 public DuplicateFinder(ICompareService compareService, IFileWalker fileWalker,
                        IFileSystemService fileSystemServices, IConfigService configService)
 {
     _compareService     = compareService;
     _fileWalker         = fileWalker;
     _fileSystemServices = fileSystemServices;
     _configService      = configService;
 }
コード例 #2
0
    public DuplicateFinderTests()
    {
        _fileWalker        = Substitute.For <IFileWalker>();
        _compareService    = Substitute.For <ICompareService>();
        _fileSystemService = Substitute.For <IFileSystemService>();
        _fileDetailService = Substitute.For <IFileDetailService>();
        _configService     = Substitute.For <IConfigService>();

        _duplicateFinder =
            new DuplicateFinder.DuplicateFinder(_compareService, _fileWalker, _fileSystemService, _configService);
    }
コード例 #3
0
ファイル: Runner.cs プロジェクト: DSkrzypiec/MagicBytes
 public Runner(
     IBytesReader bytesReader,
     IFileWalker fileWalker,
     string separator,
     string bytesSeperator)
 {
     _bytesReader    = bytesReader;
     _fileWalker     = fileWalker;
     _separator      = separator;
     _bytesSeparator = bytesSeperator;
 }