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); }
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); }