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()); }
public MonitorsControllerTests() { _registry = new Mock<IHealthMonitorTypeRegistry>(); SetUpReqistry(); _controller = new MonitorsController(_registry.Object); }