Ejemplo n.º 1
0
        protected virtual ILocatorTypeStateCreated Map(ICreateLocatorType c)
        {
            var stateEventId           = new LocatorTypeEventId(c.LocatorTypeId, c.Version);
            ILocatorTypeStateCreated e = NewLocatorTypeStateCreated(stateEventId);

            e.Description = c.Description;
            e.Active      = c.Active;
            e.CommandId   = c.CommandId;


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


            return(e);
        }
Ejemplo n.º 2
0
        public virtual void Create(ICreateLocatorType c)
        {
            ILocatorTypeStateCreated e = Map(c);

            Apply(e);
        }
 void ILocatorTypeApplicationService.When(ICreateLocatorType c)
 {
     this.When((CreateLocatorTypeDto)c);
 }
Ejemplo n.º 4
0
 public virtual void When(ICreateLocatorType c)
 {
     Update(c, ar => ar.Create(c));
 }