Ejemplo n.º 1
0
 public static BlobItem BlobItem(
     string name,
     bool deleted,
     BlobItemProperties properties,
     string snapshot,
     IDictionary <string, string> metadata)
 => new BlobItem()
 {
     Name       = name,
     Deleted    = deleted,
     Properties = properties,
     Snapshot   = snapshot,
     Metadata   = metadata,
 };
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new BlobItem instance for mocking.
 /// </summary>
 public static BlobItem BlobItem(
     string name  = default,
     bool deleted = default,
     BlobItemProperties properties = default,
     string snapshot      = default,
     string versionId     = default,
     bool?isLatestVersion = default,
     IDictionary <string, string> metadata = default,
     IDictionary <string, string> tags     = default,
     List <ObjectReplicationPolicy> objectReplicationSourcePolicies = default)
 {
     return(new BlobItem()
     {
         Name = name,
         Deleted = deleted,
         Properties = properties,
         Snapshot = snapshot,
         VersionId = versionId,
         IsLatestVersion = isLatestVersion,
         Metadata = metadata,
         Tags = tags,
         ObjectReplicationSourceProperties = objectReplicationSourcePolicies
     });
 }