Ejemplo n.º 1
0
 public void Should_Get_View_Details()
 {
     var controller = new RRApiController();
     var result = controller.Details("name");
     Assert.AreEqual("Details", result.ViewName);
     var serviceEvent = (ServiceEvent)result.ViewData.Model;
     Assert.That(serviceEvent.State, Is.EqualTo("up"));
 }
Ejemplo n.º 2
0
 public void Should_Get_View_Index()
 {
     var controller = new RRApiController();
     ViewResult result = controller.Index("name");
 }
Ejemplo n.º 3
0
 public void Should_Get_View()
 {
     var controller = new RRApiController();
     var result = controller.Details("name");
     Assert.AreEqual("Details", result.ViewName);
 }