Beispiel #1
0
        public void Arguments(string aggregateId, int magicNumber, string expectedSouceId)
        {
            var testId  = TestAggregateId.With(aggregateId);
            var command = new MyDistinctCommand(testId, magicNumber);

            var sourceId = command.SourceId;

            sourceId.Value.Should().Be(expectedSouceId);
        }
Beispiel #2
0
        public void Arguments(string aggregateId, int magicNumber, string expectedSouceId)
        {
            // Arrange
            var testId  = ThingyId.With(aggregateId);
            var command = new MyDistinctCommand(testId, magicNumber);

            // Act
            var sourceId = command.SourceId;

            // Assert
            sourceId.Value.Should().Be(expectedSouceId);
        }