-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
35 lines (31 loc) · 1015 Bytes
/
Program.cs
File metadata and controls
35 lines (31 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Exercise02_StringBuilder.Entities;
using System;
namespace Exercise02_StringBuilder
{
class Program
{
static void Main(string[] args)
{
Comment c1 = new Comment("Have a nice trip");
Comment c2 = new Comment("Wow that's awesome!");
Post p1 = new Post(
DateTime.Parse("21/06/2018 13:05:44"),
"Traveling to New Zealand",
"I'm going to visit this wonderful country!",
12);
p1.AddComment(c1);
p1.AddComment(c2);
Comment c3 = new Comment("Good night");
Comment c4 = new Comment("May the Force be with you");
Post p2 = new Post(
DateTime.Parse("28/07/2018 23:14:19"),
"Good night guys",
"See you tomorrow",
5);
p2.AddComment(c3);
p2.AddComment(c4);
Console.WriteLine(p1);
Console.WriteLine(p2);
}
}
}