Exemplo n.º 1
0
        protected DamageHandlingMethodStateDeleted NewDamageHandlingMethodStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new DamageHandlingMethodEventId(_state.DamageHandlingMethodId, version);
            var e            = NewDamageHandlingMethodStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Exemplo n.º 2
0
        protected virtual IDamageHandlingMethodStateDeleted Map(IDeleteDamageHandlingMethod c)
        {
            var stateEventId = new DamageHandlingMethodEventId(c.DamageHandlingMethodId, c.Version);
            IDamageHandlingMethodStateDeleted e = NewDamageHandlingMethodStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            DamageHandlingMethodEventId other = obj as DamageHandlingMethodEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.DamageHandlingMethodId, other.DamageHandlingMethodId) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
Exemplo n.º 4
0
        protected virtual IDamageHandlingMethodStateMergePatched Map(IMergePatchDamageHandlingMethod c)
        {
            var stateEventId = new DamageHandlingMethodEventId(c.DamageHandlingMethodId, c.Version);
            IDamageHandlingMethodStateMergePatched e = NewDamageHandlingMethodStateMergePatched(stateEventId);

            e.Description = c.Description;
            e.SequenceId  = c.SequenceId;
            e.Active      = c.Active;
            e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved;
            e.IsPropertySequenceIdRemoved  = c.IsPropertySequenceIdRemoved;
            e.IsPropertyActiveRemoved      = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


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

            var version = c.Version;


            return(e);
        }
Exemplo n.º 5
0
 protected DamageHandlingMethodEventBase(DamageHandlingMethodEventId stateEventId)
 {
     this.DamageHandlingMethodEventId = stateEventId;
 }
Exemplo n.º 6
0
 public DamageHandlingMethodStateDeleted(DamageHandlingMethodEventId stateEventId) : base(stateEventId)
 {
 }
Exemplo n.º 7
0
 public DamageHandlingMethodStateMergePatched(DamageHandlingMethodEventId stateEventId) : base(stateEventId)
 {
 }
Exemplo n.º 8
0
 protected DamageHandlingMethodStateEventBase(DamageHandlingMethodEventId stateEventId) : base(stateEventId)
 {
 }
Exemplo n.º 9
0
 private DamageHandlingMethodStateDeleted NewDamageHandlingMethodStateDeleted(DamageHandlingMethodEventId stateEventId)
 {
     return(new DamageHandlingMethodStateDeleted(stateEventId));
 }
Exemplo n.º 10
0
 private DamageHandlingMethodStateMergePatched NewDamageHandlingMethodStateMergePatched(DamageHandlingMethodEventId stateEventId)
 {
     return(new DamageHandlingMethodStateMergePatched(stateEventId));
 }