public void Client_GetsLatestUri() { // Arrange using (var tc = new TestContext()) { // Act var uri = tc.Target.GetLatestUri(tc.GetLatestRequest); // Assert tc.VerifyUri(uri, "testpath/latest.txt"); } }
public async Task Client_GetsLatestUriResultWhenExisting() { // Arrange using (var tc = new TestContext()) { await tc.Target.UploadAsync(tc.UploadRequest); // Act var uriResult = await tc.Target.GetLatestUriResultAsync(tc.GetLatestRequest); // Assert tc.VerifyUri(uriResult.Uri, "testpath/latest.txt"); Assert.NotNull(uriResult.ETag); } }