Example #1
0
 public void GetBlobStreamReturnsNullIfNoBlobStreamExists(
     [Greedy] FakeDataProvider sut,
     Guid blobId,
     CallContext context)
 {
     sut.GetBlobStream(blobId, context).Should().BeNull();
 }
Example #2
0
 public void GetBlobStreamReturnsBlobStreamFromDataStorage(
     [Greedy] FakeDataProvider sut,
     Guid blobId,
     [Modest] MemoryStream stream,
     CallContext context)
 {
     sut.DataStorage.GetBlobStream(blobId).Returns(stream);
     sut.GetBlobStream(blobId, context).Should().BeSameAs(stream);
 }