protected override void before_each() { base.before_each(); service_availability = null; instance_monitors = new List <IMonitor>(); multi_instance_monitor = null; }
private void combined_alerts() { var all_alerts = new MultiInstanceMonitor(instance_monitors_1).Availability().Alerts .Concat(new MultiInstanceMonitor(instance_monitors_2).Availability().Alerts); overall_availability.Alerts.should_be(all_alerts); }
private void monitor_info_has_name_and_type() { multi_instance_monitor = new MultiInstanceMonitor(instance_monitors); var monitor_info = multi_instance_monitor.Info; monitor_info.Type.should_be($"{instance_monitors.First().Info.Type}"); monitor_info.Name.should_be(instance_monitors.First().Info.Name); }
public void getting_availability() { multi_instance_monitor = new MultiInstanceMonitor(instance_monitors); service_availability = multi_instance_monitor.Availability(); }