public void ShouldReturnFalseIfNoBlobStreamExistsInDataStorage(BlobStreamExistsCommand sut, Guid blobId) { // arrange sut.Initialize(blobId); // act & assert ReflectionUtil.CallMethod(sut, "DoExecute").Should().Be(false); }
public void ShouldReturnTrueIfBlobStreamExistsInDataStorage(BlobStreamExistsCommand sut, Guid blobId, [Modest] MemoryStream stream) { // arrange sut.DataStorage.GetBlobStream(blobId).Returns(stream); sut.Initialize(blobId); // act & assert ReflectionUtil.CallMethod(sut, "DoExecute").Should().Be(true); }