public void CanCreateInstance() { var uriBuilder = new BlobstoreUriBuilder("http://localhost:8080"); var testee = new BlobstoreFile(uriBuilder, "110024d6-de1b-4bd9-88e5-343f55c2e0e9", "Foo.pdf"); testee.Uri.Should().Be("api/blobstore/110024d6-de1b-4bd9-88e5-343f55c2e0e9/Foo.pdf"); testee.Identifier.Should().Be("110024d6-de1b-4bd9-88e5-343f55c2e0e9"); testee.FileName.Should().Be("Foo.pdf"); testee.ToString().Should().Be("Foo.pdf"); }
/// <inheritdoc /> public Task<XDocument> GetXmlAsync(BlobstoreFile blobstoreFile) { return this.GetXmlAsync(blobstoreFile.Identifier, blobstoreFile.FileName); }
/// <inheritdoc /> public Task<Stream> GetFileStreamAsync(BlobstoreFile blobstoreFile) { return this.GetFileStreamAsync(blobstoreFile.Identifier, blobstoreFile.FileName); }