protected virtual ILocatorStateCreated Map(ICreateLocator c) { var stateEventId = new LocatorEventId(c.LocatorId, c.Version); ILocatorStateCreated e = NewLocatorStateCreated(stateEventId); e.WarehouseId = c.WarehouseId; e.ParentLocatorId = c.ParentLocatorId; e.LocatorType = c.LocatorType; e.PriorityNumber = c.PriorityNumber; e.IsDefault = c.IsDefault; e.X = c.X; e.Y = c.Y; e.Z = c.Z; e.Description = c.Description; e.LocatorTypeId = c.LocatorTypeId; e.Active = c.Active; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
protected LocatorStateDeleted NewLocatorStateDeleted(long version, string commandId, string requesterId) { var stateEventId = new LocatorEventId(_state.LocatorId, version); var e = NewLocatorStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual ILocatorStateDeleted Map(IDeleteLocator c) { var stateEventId = new LocatorEventId(c.LocatorId, c.Version); ILocatorStateDeleted e = NewLocatorStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } LocatorEventId other = obj as LocatorEventId; if (other == null) { return(false); } return(true && Object.Equals(this.LocatorId, other.LocatorId) && Object.Equals(this.Version, other.Version) ); }
private LocatorStateDeleted NewLocatorStateDeleted(LocatorEventId stateEventId) { return(new LocatorStateDeleted(stateEventId)); }
private LocatorStateMergePatched NewLocatorStateMergePatched(LocatorEventId stateEventId) { return(new LocatorStateMergePatched(stateEventId)); }
protected LocatorStateEventDtoBase(LocatorEventId stateEventId) { this.LocatorEventId = stateEventId; }
public LocatorStateDeleted(LocatorEventId stateEventId) : base(stateEventId) { }
public LocatorStateMergePatched(LocatorEventId stateEventId) : base(stateEventId) { }
public LocatorStateCreated(LocatorEventId stateEventId) : base(stateEventId) { }
protected LocatorStateEventBase(LocatorEventId stateEventId) : base(stateEventId) { }