Example #1
0
        protected virtual ILocatorTypeStateDeleted Map(IDeleteLocatorType c)
        {
            var stateEventId           = new LocatorTypeEventId(c.LocatorTypeId, c.Version);
            ILocatorTypeStateDeleted e = NewLocatorTypeStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Example #2
0
        public virtual void Delete(IDeleteLocatorType c)
        {
            ILocatorTypeStateDeleted e = Map(c);

            Apply(e);
        }
 void ILocatorTypeApplicationService.When(IDeleteLocatorType c)
 {
     this.When((DeleteLocatorTypeDto)c);
 }
Example #4
0
 public virtual void When(IDeleteLocatorType c)
 {
     Update(c, ar => ar.Delete(c));
 }