protected virtual IWarehouseStateMergePatched Map(IMergePatchWarehouse c) { var stateEventId = new WarehouseStateEventId(c.WarehouseId, c.Version); IWarehouseStateMergePatched e = NewWarehouseStateMergePatched(stateEventId); e.Name = c.Name; e.Description = c.Description; e.IsInTransit = c.IsInTransit; e.Active = c.Active; e.IsPropertyNameRemoved = c.IsPropertyNameRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyIsInTransitRemoved = c.IsPropertyIsInTransitRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; var version = c.Version; return(e); }
public virtual WarehouseStateEventId ToWarehouseStateEventId() { WarehouseStateEventId v = new WarehouseStateEventId(); v.WarehouseId = this.WarehouseId; v.Version = this.Version; return(v); }
public WarehouseStateEventIdDtoWrapper(WarehouseStateEventId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
protected WarehouseStateDeleted NewWarehouseStateDeleted(string commandId, string requesterId) { var stateEventId = new WarehouseStateEventId(_state.WarehouseId, ((IWarehouseStateProperties)_state).Version); var e = NewWarehouseStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IWarehouseStateDeleted Map(IDeleteWarehouse c) { var stateEventId = new WarehouseStateEventId(c.WarehouseId, c.Version); IWarehouseStateDeleted e = NewWarehouseStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } WarehouseStateEventId other = obj as WarehouseStateEventId; if (other == null) { return(false); } return(true && Object.Equals(this.WarehouseId, other.WarehouseId) && Object.Equals(this.Version, other.Version) ); }
public WarehouseStateEventIdFlattenedDto(WarehouseStateEventId val) { this._value = new WarehouseStateEventIdDtoWrapper(val); }
private WarehouseStateDeleted NewWarehouseStateDeleted(WarehouseStateEventId stateEventId) { return(new WarehouseStateDeleted(stateEventId)); }
private WarehouseStateMergePatched NewWarehouseStateMergePatched(WarehouseStateEventId stateEventId) { return(new WarehouseStateMergePatched(stateEventId)); }
protected WarehouseStateEventBase(WarehouseStateEventId stateEventId) { this.StateEventId = stateEventId; }
public WarehouseStateDeleted(WarehouseStateEventId stateEventId) : base(stateEventId) { }
public WarehouseStateMergePatched(WarehouseStateEventId stateEventId) : base(stateEventId) { }
public WarehouseStateCreated(WarehouseStateEventId stateEventId) : base(stateEventId) { }