Beispiel #1
0
        public void Day_ReturnstheDay_String()
        {
            string             expected = "Thursday";
            WeekdayFinderClass wkd      = new WeekdayFinderClass("08/10/2017");
            string             actual   = wkd.Day();

            Assert.AreEqual(expected, actual)
        }
Beispiel #2
0
        public ActionResult WeekDay()
        {
            DateTime date = new DateTime();

            date = Request.Form["date"];
            WeekdayFinderClass wkd = new WeekdayFinderClass(date);

            return(View("Index", wkd));
        }
        public ActionResult Weekday(string day, string month, string year)
        {
            int dayInput              = int.Parse(day);
            int monthInput            = int.Parse(month);
            int yearInput             = int.Parse(year);
            WeekdayFinderClass finder = new WeekdayFinderClass();

            finder.Day   = dayInput;
            finder.Month = monthInput;
            finder.Year  = yearInput;
            return(View(finder));
        }