public BlogPost(BlogPostContent content, Author author, Category category) { Date = DateTime.Now; Content = content ?? throw new ArgumentNullException(nameof(content)); Author = author ?? throw new ArgumentNullException(nameof(author)); Tags = new BlogPostTagCollection(); ExternalLinks = new ExternalLinkCollection(); MetaTags = new MetaTagCollection(); Category = category ?? throw new ArgumentNullException(nameof(category)); }
private BlogPost() { Tags = new BlogPostTagCollection(); ExternalLinks = new ExternalLinkCollection(); MetaTags = new MetaTagCollection(); }
public BlogPostTagCollectionTests() { _collection = new BlogPostTagCollection(); }