public virtual void When(IShipmentMethodTypeStateDeleted e) { ThrowOnWrongEvent(e); this.Deleted = true; this.UpdatedBy = e.CreatedBy; this.UpdatedAt = e.CreatedAt; }
protected virtual IShipmentMethodTypeStateDeleted Map(IDeleteShipmentMethodType c) { var stateEventId = new ShipmentMethodTypeEventId(c.ShipmentMethodTypeId, c.Version); IShipmentMethodTypeStateDeleted e = NewShipmentMethodTypeStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual ShipmentMethodTypeStateDeletedDto ToShipmentMethodTypeStateDeletedDto(IShipmentMethodTypeStateDeleted e) { var dto = new ShipmentMethodTypeStateDeletedDto(); dto.ShipmentMethodTypeEventId = e.ShipmentMethodTypeEventId; dto.CreatedAt = e.CreatedAt; dto.CreatedBy = e.CreatedBy; dto.CommandId = e.CommandId; return(dto); }
public void AddShipmentMethodTypeEvent(IShipmentMethodTypeStateDeleted e) { _innerStateEvents.Add((ShipmentMethodTypeStateDeletedDto)e); }
public virtual void Delete(IDeleteShipmentMethodType c) { IShipmentMethodTypeStateDeleted e = Map(c); Apply(e); }
void IShipmentMethodTypeState.When(IShipmentMethodTypeStateDeleted e) { throw new NotSupportedException(); }