Example #1
0
        static void Main(string[] args)
        {
            var fact = new Fact(new FactId(Guid.NewGuid()), "Hello world");

            fact.UpdateTitle("Hello world 2");
            fact.UpdateBody("This is the body if Hello World");
            fact.Publish();
            fact.Upvote();
            fact.Comment("Nice article");
            fact.Downvote();
            fact.Comment("Not so good");
            fact.Delete();

            PrintToConsole(fact);
        }