Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 private BlogPost()
 {
     Tags          = new BlogPostTagCollection();
     ExternalLinks = new ExternalLinkCollection();
     MetaTags      = new MetaTagCollection();
 }
 public BlogPostTagCollectionTests()
 {
     _collection = new BlogPostTagCollection();
 }