public CheckFile(string filePath, IFileSystemWrapper fileSystemWrapper = null ) { if (fileSystemWrapper != null) this.fileSystem = fileSystemWrapper; else this.fileSystem = FileSystemWrapper.GetInstance(); CheckFileExists(filePath); this.filePath = filePath; this.Checked = false; this.IsDuplicated = false; this.FileId = 0; this.Size = fileSystemWrapper.GetFileSize(filePath); }