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... ////////////////////////////
void ICreateGoodIdentificationCommands.Remove(ICreateGoodIdentification c) { _innerCommands.Remove((CreateGoodIdentificationDto)c); }
void ICreateGoodIdentificationCommands.Add(ICreateGoodIdentification c) { _innerCommands.Add((CreateGoodIdentificationDto)c); }
public void Remove(ICreateGoodIdentification c) { _innerCommands.Remove(c); }
public void Add(ICreateGoodIdentification c) { _innerCommands.Add(c); }