Example #1
0
 /// <summary>
 /// Creates a new PathProperties instance for mocking.
 /// </summary>
 public static PathProperties PathProperties(
     DateTimeOffset lastModified,
     DateTimeOffset creationTime,
     IDictionary <string, string> metadata,
     DateTimeOffset copyCompletionTime,
     string copyStatusDescription,
     string copyId,
     string copyProgress,
     Uri copySource,
     CopyStatus copyStatus,
     bool isIncrementalCopy,
     DataLakeLeaseDuration leaseDuration,
     DataLakeLeaseState leaseState,
     DataLakeLeaseStatus leaseStatus,
     long contentLength,
     string contentType,
     ETag eTag,
     byte[] contentHash,
     string contentEncoding,
     string contentDisposition,
     string contentLanguage,
     string cacheControl,
     string acceptRanges,
     bool isServerEncrypted,
     string encryptionKeySha256,
     string accessTier,
     string archiveStatus,
     DateTimeOffset accessTierChangeTime,
     bool isDirectory)
 => new PathProperties()
 {
     LastModified          = lastModified,
     CreatedOn             = creationTime,
     Metadata              = metadata,
     CopyCompletedOn       = copyCompletionTime,
     CopyStatusDescription = copyStatusDescription,
     CopyId            = copyId,
     CopyProgress      = copyProgress,
     CopySource        = copySource,
     CopyStatus        = copyStatus,
     IsIncrementalCopy = isIncrementalCopy,
     LeaseDuration     = leaseDuration,
     LeaseState        = leaseState,
     LeaseStatus       = leaseStatus,
     ContentLength     = contentLength,
     ContentType       = contentType,
     ETag                = eTag,
     ContentHash         = contentHash,
     ContentEncoding     = contentEncoding,
     ContentDisposition  = contentDisposition,
     ContentLanguage     = contentLanguage,
     CacheControl        = cacheControl,
     AcceptRanges        = acceptRanges,
     IsServerEncrypted   = isServerEncrypted,
     EncryptionKeySha256 = encryptionKeySha256,
     AccessTier          = accessTier,
     ArchiveStatus       = archiveStatus,
     AccessTierChangedOn = accessTierChangeTime,
     IsDirectory         = isDirectory
 };
Example #2
0
 /// <summary>
 /// Creates a new <see cref="FileDownloadDetails"/> instance for mocking.
 /// </summary>
 public static FileDownloadDetails FileDownloadDetails(
     DateTimeOffset lastModified,
     IDictionary <string, string> metadata,
     string contentRange,
     ETag eTag,
     string contentEncoding,
     string cacheControl,
     string contentDisposition,
     string contentLanguage,
     DateTimeOffset copyCompletionTime,
     string copyStatusDescription,
     string copyId,
     string copyProgress,
     Uri copySource,
     CopyStatus copyStatus,
     DataLakeLeaseDuration leaseDuration,
     DataLakeLeaseState leaseState,
     DataLakeLeaseStatus leaseStatus,
     string acceptRanges,
     bool isServerEncrypted,
     string encryptionKeySha256,
     byte[] contentHash)
 => new FileDownloadDetails()
 {
     LastModified          = lastModified,
     Metadata              = metadata,
     ContentRange          = contentRange,
     ETag                  = eTag,
     ContentEncoding       = contentEncoding,
     CacheControl          = cacheControl,
     ContentDisposition    = contentDisposition,
     ContentLanguage       = contentLanguage,
     CopyCompletedOn       = copyCompletionTime,
     CopyStatusDescription = copyStatusDescription,
     CopyId                = copyId,
     CopyProgress          = copyProgress,
     CopySource            = copySource,
     CopyStatus            = copyStatus,
     LeaseDuration         = leaseDuration,
     LeaseState            = leaseState,
     LeaseStatus           = leaseStatus,
     AcceptRanges          = acceptRanges,
     IsServerEncrypted     = isServerEncrypted,
     EncryptionKeySha256   = encryptionKeySha256,
     ContentHash           = contentHash
 };