public DeveloperRejectedEvent(DeveloperUniqueId uniqueId, string name, DeveloperStatus status, int version) { UniqueId = uniqueId; Status = status; Name = name; Version = version; Key = uniqueId.GetAggregateKey(); }
private void Apply(DevloperSubmitedEvent e) { Status = DeveloperStatus.New; Name = e.Name; UniqueId = e.UniqueId; Version = e.Version++; this.Key = e.UniqueId.GetAggregateKey(); }
private void Apply(DeveloperRejectedEvent e) { Status = e.Status; Name = e.Name; UniqueId = e.UniqueId; Version = e.Version++; this.Key = e.UniqueId.GetAggregateKey(); }
public EsSubmitDeveloperCommand() { Version = 0; UniqueId = new DeveloperUniqueId(); Status = DeveloperStatus.New; }
public SubmitDeveloperCommand() { UniqueId = new DeveloperUniqueId(); Status = DeveloperStatus.New; }