Exemple #1
0
 public Ad(AdId id, Money price, Coords coords, PostalCode postalCode)
 {
     this.Id         = id;
     this.Price      = price;
     this.Coords     = coords;
     this.PostalCode = postalCode;
 }
        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));
        }
Exemple #3
0
 public AdPriceChanged(AdId adId, Money toPrice)
 {
     this.AdId       = adId;
     this.ToPrice    = toPrice;
     this.OccurredOn = DateTime.Now;
 }