Beispiel #1
0
        protected InventoryPRTriggeredStateMergePatched NewInventoryPRTriggeredStateMergePatched(long version, string commandId, string requesterId)
        {
            var stateEventId = new InventoryPRTriggeredEventId(_state.InventoryPRTriggeredId, version);
            var e            = NewInventoryPRTriggeredStateMergePatched(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
Beispiel #2
0
        protected virtual IInventoryPRTriggeredStateCreated Map(ICreateInventoryPRTriggered c)
        {
            var stateEventId = new InventoryPRTriggeredEventId(c.InventoryPRTriggeredId, c.Version);
            IInventoryPRTriggeredStateCreated e = NewInventoryPRTriggeredStateCreated(stateEventId);

            e.IsProcessed = c.IsProcessed;
            e.CommandId   = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var version = c.Version;


            return(e);
        }
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            InventoryPRTriggeredEventId other = obj as InventoryPRTriggeredEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.InventoryPRTriggeredId, other.InventoryPRTriggeredId) &&
                   Object.Equals(this.Version, other.Version)
                   );
        }
Beispiel #4
0
 protected InventoryPRTriggeredStateEventDtoBase(InventoryPRTriggeredEventId stateEventId)
 {
     this.InventoryPRTriggeredEventId = stateEventId;
 }
Beispiel #5
0
 public InventoryPRTriggeredStateMergePatched(InventoryPRTriggeredEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #6
0
 public InventoryPRTriggeredStateCreated(InventoryPRTriggeredEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #7
0
 protected InventoryPRTriggeredStateEventBase(InventoryPRTriggeredEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #8
0
 private InventoryPRTriggeredStateMergePatched NewInventoryPRTriggeredStateMergePatched(InventoryPRTriggeredEventId stateEventId)
 {
     return(new InventoryPRTriggeredStateMergePatched(stateEventId));
 }
Beispiel #9
0
////////////////////////

        private InventoryPRTriggeredStateCreated NewInventoryPRTriggeredStateCreated(InventoryPRTriggeredEventId stateEventId)
        {
            return(new InventoryPRTriggeredStateCreated(stateEventId));
        }