public void Welcome_Formats_Time_Correctly()
 {
     clock.Setup(c => c.UtcNow).Returns(new DateTime(2001, 2, 3, 4, 5, 6));
     var controller = new HomeController(clock.Object);
     var result = controller.Welcome("Eddie") as ViewResult;
     var model = result.ViewData.Model as WelcomeViewData;
     model.Date.ShouldBe("February 3, 2001");
 }
 public void Welcome_Includes_Name()
 {
     var controller = new HomeController(clock.Object);
     var result = controller.Welcome("Luke") as ViewResult;
     var model = result.ViewData.Model as WelcomeViewData;
     model.ShouldBeTypeOf<WelcomeViewData>();
     model.Name.ShouldBe("Luke");
 }
 public void Welcome_Returns_View()
 {
     var controller = new HomeController(clock.Object);
     var result = controller.Welcome("Eddie") as ViewResult;
     result.ShouldBeTypeOf<ViewResult>();
 }
 public void Index_Returns_View()
 {
     var c = new HomeController(clock.Object);
     var result = c.Index();
     result.ShouldBeTypeOf<ViewResult>();
 }