Ejemplo n.º 1
0
        public void AssignCategory(Category category)
        {
            _categories.Add(category);

            DomainEvents.Raise(new AssignedCategoryToPostEvent(this, category));
        }
 public AssignedCategoryToPostEvent(Post post,Category category)
 {
     this.Post = post;
     this.Category = category;
 }