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