Exemple #1
0
        protected virtual IGoodIdentificationStateCreated MapCreate(ICreateGoodIdentification c, IProductCommand outerCommand, long version, IProductState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new GoodIdentificationEventId(c.ProductId, c.GoodIdentificationTypeId, version);
            IGoodIdentificationStateCreated e = NewGoodIdentificationStateCreated(stateEventId);
            var s = outerState.GoodIdentifications.Get(c.GoodIdentificationTypeId, true);

            e.IdValue = c.IdValue;
            e.Active  = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Exemple #2
0
 void ICreateGoodIdentificationCommands.Remove(ICreateGoodIdentification c)
 {
     _innerCommands.Remove((CreateGoodIdentificationDto)c);
 }
Exemple #3
0
 void ICreateGoodIdentificationCommands.Add(ICreateGoodIdentification c)
 {
     _innerCommands.Add((CreateGoodIdentificationDto)c);
 }
Exemple #4
0
 public void Remove(ICreateGoodIdentification c)
 {
     _innerCommands.Remove(c);
 }
Exemple #5
0
 public void Add(ICreateGoodIdentification c)
 {
     _innerCommands.Add(c);
 }