public class TestAggregate : AggregateBase { public int AppliedEventCount { get; private set; } public TestAggregate(Guid aggregateId) : this() { RaiseEvent(new TestAggregateCreated(aggregateId)); } public void ProduceEvents(int count) { for (var i = 0; i < count; i++) RaiseEvent(new WoftamEvent("Woftam1-" + i, "Woftam2-" + i)); } private TestAggregate() { Register(e => Id = e.AggregateId); Register(e => AppliedEventCount++); } }