public void TryDecompose_returns_false_if_value_is_non_stream_command( StreamEvent <Event1> value) { bool actual = StreamCommand.TryDecompose(value, out _, out _); actual.Should().BeFalse(); }
public void TryDecompose_returns_true_if_value_is_stream_command( StreamCommand <Command1> value) { bool actual = StreamCommand.TryDecompose(value, out _, out _); actual.Should().BeTrue(); }
public void TryDecompose_returns_payload_correctly( StreamCommand <Command1> value) { _ = StreamCommand.TryDecompose(value, out _, out object payload); payload.Should().BeSameAs(value.Payload); }
public void TryDecompose_returns_stream_id_correctly( StreamCommand <Command1> value) { _ = StreamCommand.TryDecompose(value, out Guid streamId, out _); streamId.Should().Be(value.StreamId); }
public void TryDecompose_returns_false_if_value_is_null() { bool actual = StreamCommand.TryDecompose(value: null, out _, out _); actual.Should().BeFalse(); }