Esempio n. 1
0
        public virtual InOutLineStateRemovedDto NewInOutLineStateRemoved(SkuId skuId)
        {
            var e   = new InOutLineStateRemovedDto();
            var eId = NewInOutLineStateEventId(skuId);

            e.StateEventId = eId;
            return(e);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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)
                   );
        }
Esempio n. 5
0
 public SkuIdFlattenedDto(SkuId val)
 {
     this._value = val;
 }
Esempio n. 6
0
 public IInOutLineState Get(SkuId skuId)
 {
     throw new NotSupportedException();
 }
Esempio n. 7
0
        public virtual IInOutLineStateRemoved NewInOutLineStateRemoved(SkuId skuId)
        {
            var stateEvent = new InOutLineStateRemoved(NewInOutLineStateEventId(skuId));

            return(stateEvent);
        }
Esempio n. 8
0
        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));
 }
Esempio n. 10
0
 public SkuIdDto(SkuId val)
 {
     this._value = val;
 }
Esempio n. 11
0
 public InOutLineStateEventId(string inOutDocumentNumber, SkuId skuId, long inOutVersion)
 {
     this._inOutDocumentNumber = inOutDocumentNumber;
     this._skuId        = skuId;
     this._inOutVersion = inOutVersion;
 }
Esempio n. 12
0
 public InOutLineId(string inOutDocumentNumber, SkuId skuId)
 {
     this._inOutDocumentNumber = inOutDocumentNumber;
     this._skuId = skuId;
 }
Esempio n. 13
0
 IInOutLineStateRemoved IInOutStateDeleted.NewInOutLineStateRemoved(SkuId skuId)
 {
     return(NewInOutLineStateRemoved(skuId));
 }
Esempio n. 14
0
 IInOutLineStateRemoved IInOutStateMergePatched.NewInOutLineStateRemoved(SkuId skuId)
 {
     return(NewInOutLineStateRemoved(skuId));
 }
Esempio n. 15
0
 IInOutLineStateCreated IInOutStateCreated.NewInOutLineStateCreated(SkuId skuId)
 {
     return(NewInOutLineStateCreated(skuId));
 }