Пример #1
0
 protected override void before_each()
 {
     base.before_each();
     service_availability   = null;
     instance_monitors      = new List <IMonitor>();
     multi_instance_monitor = null;
 }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 public void getting_availability()
 {
     multi_instance_monitor = new MultiInstanceMonitor(instance_monitors);
     service_availability   = multi_instance_monitor.Availability();
 }