Esempio n. 1
0
 public HomeModule()
 {
     Get["/"] = _ => {
     return View["index.cshtml"];
       };
       Post["/"] = _ => {
     Clock newClock = new Clock(Request.Form["hours"], Request.Form["min"]);
     return View["index.cshtml",newClock.ReturnDegrees()];
       };
 }
Esempio n. 2
0
 public void OneTestToPassThemAllKinda()
 {
     //Arrange
       int userHour = 6;
       int userMin = 0;
       //Act
       var newClock = new Clock(userHour, userMin);
       //Assert
       Assert.Equal(180, newClock.ReturnDegrees());
 }
Esempio n. 3
0
 public void OneTestToPassThemAll()
 {
     //Arrange
       int userHour = 12;
       int userMin = 59;
       //Act
       var newClock = new Clock(userHour, userMin);
       //Assert
       Assert.Equal(30, newClock.ReturnDegrees());
 }
Esempio n. 4
0
 public HomeModule()
 {
     Get["/"] = _ => {
         return(View["index.cshtml"]);
     };
     Post["/"] = _ => {
         Clock newClock = new Clock(Request.Form["hours"], Request.Form["min"]);
         return(View["index.cshtml", newClock.ReturnDegrees()]);
     };
 }
Esempio n. 5
0
        public void OneTestToPassThemAllKinda()
        {
            //Arrange
            int userHour = 6;
            int userMin  = 0;
            //Act
            var newClock = new Clock(userHour, userMin);

            //Assert
            Assert.Equal(180, newClock.ReturnDegrees());
        }
Esempio n. 6
0
        public void OneTestToPassThemAll()
        {
            //Arrange
            int userHour = 12;
            int userMin  = 59;
            //Act
            var newClock = new Clock(userHour, userMin);

            //Assert
            Assert.Equal(30, newClock.ReturnDegrees());
        }