コード例 #1
0
 /// <summary>
 /// Creates a new StorageFileItem instance for mocking.
 /// </summary>
 public static ShareFileItem ShareFileItem(
     bool isDirectory = default,
     string name      = default,
     long?fileSize    = default,
     string id        = default,
     ShareFileItemProperties properties = default,
     NtfsFileAttributes?fileAttributes  = default,
     string permissionKey = default) =>
 new ShareFileItem(
     isDirectory: isDirectory,
     name: name,
     id: id,
     properties: properties,
     fileAttributes: fileAttributes,
     permissionKey: permissionKey,
     fileSize: fileSize);
コード例 #2
0
 internal ShareFileItem(
     bool isDirectory,
     string name,
     string id,
     ShareFileItemProperties properties,
     NtfsFileAttributes?fileAttributes,
     string permissionKey,
     long?fileSize)
 {
     IsDirectory    = isDirectory;
     Name           = name;
     Id             = id;
     Properties     = properties;
     FileAttributes = fileAttributes;
     PermissionKey  = permissionKey;
     FileSize       = fileSize;
 }