public StorageCopyState(Microsoft.Azure.Storage.Blob.CopyState blobCopyState)
 {
     this.CopyId = blobCopyState.CopyId;
     this.SetStatus(blobCopyState.Status);
     this.Source            = blobCopyState.Source;
     this.BytesCopied       = blobCopyState.BytesCopied;
     this.TotalBytes        = blobCopyState.TotalBytes;
     this.StatusDescription = blobCopyState.StatusDescription;
 }
 public static void AssertAreEqual(CopyState expected, CopyState actual)
 {
     if (expected == null)
     {
         Assert.IsNull(actual);
     }
     else
     {
         Assert.IsNotNull(actual);
         Assert.AreEqual(expected.BytesCopied, actual.BytesCopied);
         Assert.AreEqual(expected.CompletionTime, actual.CompletionTime);
         Assert.AreEqual(expected.CopyId, actual.CopyId);
         Assert.AreEqual(expected.Source, actual.Source);
         Assert.AreEqual(expected.Status, actual.Status);
         Assert.AreEqual(expected.TotalBytes, actual.TotalBytes);
     }
 }