public void Rate_ExtremeMax()
        {
            CommentsModel comments = new CommentsModel();
            //test data to assign to the test
            Int32    Rating = 20;
            DateTime date   = new DateTime(2021, 1, 01);
            string   valid  = comments.valid(Rating, date);

            Assert.AreEqual(valid, "To high rating");
        }
        public void Rate_MaxMinus1()
        {
            CommentsModel comments = new CommentsModel();
            //test data to assign to the test
            Int32    Rating = 9;
            DateTime date   = new DateTime(2021, 1, 01);
            string   valid  = comments.valid(Rating, date);

            Assert.AreEqual(valid, "");
        }
        public void Date_MaxMinus1()
        {
            CommentsModel comments = new CommentsModel();
            //test data to assign to the tests
            DateTime date = DateTime.Now.AddYears(+10).AddDays(-1);
            //assign data to the property
            string valid = comments.valid(4, date);

            //test
            Assert.AreEqual(valid, "");
        }
        public void Date_Minplus1()
        {
            CommentsModel comments = new CommentsModel();
            //test data to assign to tests
            DateTime date = new DateTime(2021, 1, 02);
            //assign data to the property
            string valid = comments.valid(4, date);

            //test
            Assert.AreEqual(valid, "");
        }
        public void Date_ExtremeMin()
        {
            CommentsModel comments = new CommentsModel();
            //test data to assign to tests
            DateTime date = new DateTime(2020, 1, 01);
            //assign data to the property
            string valid = comments.valid(4, date);

            //test
            Assert.AreEqual(valid, "Too long ago");
        }
        public void Date_ExtremeMax()
        {
            CommentsModel comments = new CommentsModel();
            //test data to assign to the test
            DateTime date = new DateTime(5315, 1, 01);
            //assign data to the property
            string valid = comments.valid(4, date);

            //test
            Assert.AreEqual(valid, "Too far in the future");
        }