Ejemplo n.º 1
0
 public static BlogStory WithTags(this BlogStory story) => story
 .Begin()
 .When(new StartTagCommand(Consts.Host, Consts.TagUrl, Consts.TagTitle))
 .Then(new TagStartedEvent(Consts.Host, Consts.TagUrl, Consts.TagTitle))
 .End();
Ejemplo n.º 2
0
 public static BlogStory WithCategories(this BlogStory story) => story
 .Begin()
 .When(new StartCategoryCommand(Consts.Host, Consts.CategoryUrl, Consts.CategoryTitle))
 .Then(new CategoryStartedEvent(Consts.Host, Consts.CategoryUrl, Consts.CategoryTitle))
 .End();
Ejemplo n.º 3
0
 public static BlogStory WithLinks(this BlogStory story) => story
 .Begin()
 .When(new StartLinkCommand(Consts.Host, Consts.LinkUrl, Consts.LinkTitle, 0))
 .Then(new LinkStartedEvent(Consts.Host, Consts.LinkUrl, Consts.LinkTitle, 0))
 .End();