예제 #1
0
        public async Task FileSharing_WithAuthorizeUser_ReturnsExpectedBlobFile()
        {
            var blobResponse = await JohnApi.GetBlobFileEntityById(FileId, BlobId);

            blobResponse.EnsureSuccessStatusCode();
            blobResponse.StatusCode.ShouldBeEquivalentTo(HttpStatusCode.OK);
            blobResponse.Content.Headers.ContentType.MediaType.ShouldBeEquivalentTo("application/octet-stream");
            blobResponse.Content.Headers.ContentLength.ShouldBeEquivalentTo(1689);
            //blobResponse.Content.Headers.ContentDisposition.FileName.ShouldBeEquivalentTo("Aspirin.mol");
        }