public void Create(SampleCommand command) { ApplyChange(new SampleEvent() { AggregateId = this.AggregateId, No = command.No, Delay = command.Delay }); }
public static SampleAggregateRoot Register(SampleCommand command) { var root = new SampleAggregateRoot(command.AggregateId); return(root); }