Exemplo n.º 1
0
        public void TryDecompose_returns_false_if_value_is_non_stream_command(
            StreamEvent <Event1> value)
        {
            bool actual = StreamCommand.TryDecompose(value, out _, out _);

            actual.Should().BeFalse();
        }
Exemplo n.º 2
0
        public void TryDecompose_returns_true_if_value_is_stream_command(
            StreamCommand <Command1> value)
        {
            bool actual = StreamCommand.TryDecompose(value, out _, out _);

            actual.Should().BeTrue();
        }
Exemplo n.º 3
0
 public void TryDecompose_returns_payload_correctly(
     StreamCommand <Command1> value)
 {
     _ = StreamCommand.TryDecompose(value, out _, out object payload);
     payload.Should().BeSameAs(value.Payload);
 }
Exemplo n.º 4
0
 public void TryDecompose_returns_stream_id_correctly(
     StreamCommand <Command1> value)
 {
     _ = StreamCommand.TryDecompose(value, out Guid streamId, out _);
     streamId.Should().Be(value.StreamId);
 }
Exemplo n.º 5
0
        public void TryDecompose_returns_false_if_value_is_null()
        {
            bool actual = StreamCommand.TryDecompose(value: null, out _, out _);

            actual.Should().BeFalse();
        }