示例#1
0
 public Ad(AdId id, Money price, Coords coords, PostalCode postalCode)
 {
     this.Id         = id;
     this.Price      = price;
     this.Coords     = coords;
     this.PostalCode = postalCode;
 }
示例#2
0
        public Ad(AdId id, Money price, Coords coords, PostalCode postalCode, string title)
        {
            this.Id         = id;
            this.Title      = title;
            this.Price      = price;
            this.Coords     = coords;
            this.PostalCode = postalCode;

            //DomainEvent.Publish<AdCreated>(new AdCreated(this));
            this.AddEvent((IAdCreated) new AdCreated(this));
        }
示例#3
0
 public AdPriceChanged(AdId adId, Money toPrice)
 {
     this.AdId       = adId;
     this.ToPrice    = toPrice;
     this.OccurredOn = DateTime.Now;
 }