Inheritance: ApiController
コード例 #1
0
 public void GetTypes_should_return_all_registered_monitor_types()
 {
     var registry = new HealthMonitorRegistry(new[] { CreateMonitor("monitor2"), CreateMonitor("monitor1") });
     var controller = new MonitorsController(registry);
     Assert.Equal(new[] { "monitor1", "monitor2" }, controller.Get());
 }
コード例 #2
0
 public MonitorsControllerTests()
 {
     _registry = new Mock<IHealthMonitorTypeRegistry>();
     SetUpReqistry();
     _controller = new MonitorsController(_registry.Object);  
 }