Exemplo n.º 1
0
        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");
            }
        }
Exemplo n.º 2
0
        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);
            }
        }