Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        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)
                   );
        }
Ejemplo n.º 4
0
 protected InventoryPRTriggeredStateEventDtoBase(InventoryPRTriggeredEventId stateEventId)
 {
     this.InventoryPRTriggeredEventId = stateEventId;
 }
Ejemplo n.º 5
0
 public InventoryPRTriggeredStateMergePatched(InventoryPRTriggeredEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 6
0
 public InventoryPRTriggeredStateCreated(InventoryPRTriggeredEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 7
0
 protected InventoryPRTriggeredStateEventBase(InventoryPRTriggeredEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 8
0
 private InventoryPRTriggeredStateMergePatched NewInventoryPRTriggeredStateMergePatched(InventoryPRTriggeredEventId stateEventId)
 {
     return(new InventoryPRTriggeredStateMergePatched(stateEventId));
 }
Ejemplo n.º 9
0
////////////////////////

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