Exemplo n.º 1
0
        protected virtual IOrderRoleStateCreated MapCreate(ICreateOrderRole c, IOrderCommand outerCommand, long version, IOrderState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId         = new OrderRoleEventId(c.OrderId, c.PartyRoleId, version);
            IOrderRoleStateCreated e = NewOrderRoleStateCreated(stateEventId);
            var s = outerState.OrderRoles.Get(c.PartyRoleId, true);

            e.Active = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Exemplo n.º 2
0
 void ICreateOrderRoleCommands.Remove(ICreateOrderRole c)
 {
     _innerCommands.Remove((CreateOrderRoleDto)c);
 }
Exemplo n.º 3
0
 public void Remove(ICreateOrderRole c)
 {
     _innerCommands.Remove(c);
 }
Exemplo n.º 4
0
 void ICreateOrderRoleCommands.Add(ICreateOrderRole c)
 {
     _innerCommands.Add((CreateOrderRoleDto)c);
 }
Exemplo n.º 5
0
 public void Add(ICreateOrderRole c)
 {
     _innerCommands.Add(c);
 }