Example #1
0
 public async Task TestThatLockFailsIfBlobLeaseThrowsStorageException()
 {
     var blobLeaseStub = new StubIBlobLease
     {
         TryAcquireLease = () => AsyncUtils.AsyncTaskThatThrows<string>(new StorageException()),
         IDisposable_Dispose = () => { }
     };
     await TestThatLockFailsIfBlobLeaseCantBeAcquired(blobLeaseStub);
 }
Example #2
0
 public async Task TestThatLockFailsIfBlobLeaseReturnsNull()
 {
     var blobLeaseStub = new StubIBlobLease
     {
         TryAcquireLease = () => AsyncUtils.AsyncTaskWithResult<string>(null),
         IDisposable_Dispose = () => { }
     };
     await TestThatLockFailsIfBlobLeaseCantBeAcquired(blobLeaseStub);
 }