Beispiel #1
0
        // Method to add test comments
        public void AddTestComments(FakeCommentRepository repo)
        {
            // Test comment 1 [0]
            Comment comment1 = new Comment()
            {
                CommentText = "So heavy!",
                UserName    = "******",
                Instrument  = "tuba",
                CommentTime = DateTime.Now
            };

            // Add test message 1 to the repo
            repo.AddComment(comment1);

            // Test comment 2 [1]
            Comment comment2 = new Comment()
            {
                CommentText = "This is a weird instrument but fun so far.",
                UserName    = "******",
                Instrument  = "bassoon",
                CommentTime = DateTime.Now
            };

            // Add test message 1 to the repo
            repo.AddComment(comment2);

            // Test comment 3 [2]
            Comment comment3 = new Comment()
            {
                CommentText = "Difficult to play.",
                UserName    = "******",
                Instrument  = "horn",
                CommentTime = DateTime.Now
            };

            // Add test message 1 to the repo
            repo.AddComment(comment3);
        }