public DeveloperRejectedEvent(DeveloperUniqueId uniqueId,
                               string name, DeveloperStatus status, int version)
 {
     UniqueId = uniqueId;
     Status   = status;
     Name     = name;
     Version  = version;
     Key      = uniqueId.GetAggregateKey();
 }
Exemplo n.º 2
0
        private void Apply(DevloperSubmitedEvent e)
        {
            Status = DeveloperStatus.New;

            Name     = e.Name;
            UniqueId = e.UniqueId;
            Version  = e.Version++;
            this.Key = e.UniqueId.GetAggregateKey();
        }
Exemplo n.º 3
0
        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;
 }
Exemplo n.º 5
0
 public SubmitDeveloperCommand()
 {
     UniqueId = new DeveloperUniqueId();
     Status   = DeveloperStatus.New;
 }