Esempio n. 1
0
        public virtual void When(IAttributeAliasMvoStateDeleted e)
        {
            ThrowOnWrongEvent(e);

            this.Deleted   = true;
            this.UpdatedBy = e.CreatedBy;
            this.UpdatedAt = e.CreatedAt;
        }
Esempio n. 2
0
        protected virtual IAttributeAliasMvoStateDeleted Map(IDeleteAttributeAliasMvo c)
        {
            var stateEventId = new AttributeAliasMvoEventId(c.AttributeAliasId, c.AttributeVersion);
            IAttributeAliasMvoStateDeleted e = NewAttributeAliasMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


            return(e);
        }
Esempio n. 3
0
        public virtual AttributeAliasMvoStateDeletedDto ToAttributeAliasMvoStateDeletedDto(IAttributeAliasMvoStateDeleted e)
        {
            var dto = new AttributeAliasMvoStateDeletedDto();

            dto.AttributeAliasMvoEventId = e.AttributeAliasMvoEventId;
            dto.CreatedAt = e.CreatedAt;
            dto.CreatedBy = e.CreatedBy;
            dto.CommandId = e.CommandId;

            return(dto);
        }
 void IAttributeAliasMvoState.When(IAttributeAliasMvoStateDeleted e)
 {
     throw new NotSupportedException();
 }
 public void AddAttributeAliasMvoEvent(IAttributeAliasMvoStateDeleted e)
 {
     _innerStateEvents.Add((AttributeAliasMvoStateDeletedDto)e);
 }
Esempio n. 6
0
        public virtual void Delete(IDeleteAttributeAliasMvo c)
        {
            IAttributeAliasMvoStateDeleted e = Map(c);

            Apply(e);
        }