public virtual InOutLineStateRemovedDto NewInOutLineStateRemoved(SkuId skuId) { var e = new InOutLineStateRemovedDto(); var eId = NewInOutLineStateEventId(skuId); e.StateEventId = eId; return(e); }
private InOutLineStateEventIdDto NewInOutLineStateEventId(SkuId skuId) { var eId = new InOutLineStateEventIdDto(); eId.InOutDocumentNumber = this.StateEventId.DocumentNumber; eId.SkuId = new SkuIdDto(skuId); eId.InOutVersion = this.StateEventId.Version; return(eId); }
public virtual IInOutLineState Get(SkuId skuId) { InOutLineId globalId = new InOutLineId(_inOutState.DocumentNumber, skuId); if (_loadedInOutLineStates.ContainsKey(globalId)) { return(_loadedInOutLineStates[globalId]); } var state = InOutLineStateDao.Get(globalId); _loadedInOutLineStates.Add(globalId, state); return(state); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } SkuId other = obj as SkuId; if (other == null) { return(false); } return(true && Object.Equals(this.ProductId, other.ProductId) && Object.Equals(this.AttributeSetInstanceId, other.AttributeSetInstanceId) ); }
public SkuIdFlattenedDto(SkuId val) { this._value = val; }
public IInOutLineState Get(SkuId skuId) { throw new NotSupportedException(); }
public virtual IInOutLineStateRemoved NewInOutLineStateRemoved(SkuId skuId) { var stateEvent = new InOutLineStateRemoved(NewInOutLineStateEventId(skuId)); return(stateEvent); }
protected InOutLineStateEventId NewInOutLineStateEventId(SkuId skuId) { var stateEventId = new InOutLineStateEventId(this.StateEventId.DocumentNumber, skuId, this.StateEventId.Version); return(stateEventId); }
public virtual IInOutLineState GetInOutLine(string inOutDocumentNumber, SkuId skuId) { return(StateRepository.GetInOutLine(inOutDocumentNumber, skuId)); }
public SkuIdDto(SkuId val) { this._value = val; }
public InOutLineStateEventId(string inOutDocumentNumber, SkuId skuId, long inOutVersion) { this._inOutDocumentNumber = inOutDocumentNumber; this._skuId = skuId; this._inOutVersion = inOutVersion; }
public InOutLineId(string inOutDocumentNumber, SkuId skuId) { this._inOutDocumentNumber = inOutDocumentNumber; this._skuId = skuId; }
IInOutLineStateRemoved IInOutStateDeleted.NewInOutLineStateRemoved(SkuId skuId) { return(NewInOutLineStateRemoved(skuId)); }
IInOutLineStateRemoved IInOutStateMergePatched.NewInOutLineStateRemoved(SkuId skuId) { return(NewInOutLineStateRemoved(skuId)); }
IInOutLineStateCreated IInOutStateCreated.NewInOutLineStateCreated(SkuId skuId) { return(NewInOutLineStateCreated(skuId)); }