Esempio n. 1
0
 public Article(string title, string content, IEnumerable <Product> products)
 {
     Id       = new ArticleId();
     Status   = ArticleStatus.Draft;
     Title    = title;
     Content  = content;
     Products = new List <Product>(products);
 }
Esempio n. 2
0
 public Article()
 {
     Id       = new ArticleId();
     Products = new List <Product>();
     Status   = ArticleStatus.Draft;
 }
 protected bool Equals(ArticleId other)
 {
     return(Id.Equals(other.Id));
 }