Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes after mege
  • Loading branch information
jalauzon-msft committed Oct 23, 2023
commit e3a13edd56f97970ef7fcb809ae2200171772aa1
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ public void Serialize()
}

[Test]
public void Deserialize()
[TestCase(BlobType.Block)]
[TestCase(BlobType.Page)]
[TestCase(BlobType.Append)]
public void Deserialize(BlobType blobType)
{
BlobSourceCheckpointData data = new(BlobType.Block);
BlobSourceCheckpointData data = new(blobType);

using (Stream stream = new MemoryStream(DataMovementBlobConstants.DestinationCheckpointData.VariableLengthStartIndex))
{
Expand All @@ -57,7 +60,7 @@ public void Deserialize()
BlobSourceCheckpointData deserialized = BlobSourceCheckpointData.Deserialize(stream);

Assert.AreEqual(DataMovementBlobConstants.SourceCheckpointData.SchemaVersion, deserialized.Version);
Assert.AreEqual(BlobType.Block, deserialized.BlobType);
Assert.AreEqual(blobType, deserialized.BlobType);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Azure.Storage.DataMovement.Files.Shares
internal class ShareDirectoryStorageResourceContainer : StorageResourceContainerInternal
{
internal ShareFileStorageResourceOptions ResourceOptions { get; set; }
internal PathScanner PathScanner { get; set; }
internal PathScanner PathScanner { get; set; } = PathScanner.Singleton.Value;

internal ShareDirectoryClient ShareDirectoryClient { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected internal override StorageResourceCheckpointData GetDestinationCheckpoi
throw new NotImplementedException();
}

public override StorageResourceCheckpointData GetSourceCheckpointData()
protected internal override StorageResourceCheckpointData GetSourceCheckpointData()
{
throw new NotImplementedException();
}
Expand Down