示例#1
0
        private void PrintWorkToConsole(Output output, Work work)
        {
            output.WriteLine($"Author: <{work.Author().Email()}>");
            output.WriteLine($"base: {work.Start()}");
            output.WriteLine($"head: {work.End()}");

            if (work.Since() is object)
            {
                output.WriteLine($"Since: {work.Since()}");
            }

            if (work.Link() is object)
            {
                output.WriteLine($"Link: {work.Link()}");
            }

            output.WriteLine($"Additions: {work.Additions()}");
            output.WriteLine($"Reward: {Reward(work):F2}");

            PrintWorkRatingsToConsole(output, work);
        }