Example #1
0
 public void a_set_with_a_single_available_instance_alerts_redundancy_loss()
 {
     Given(available_instance);
     And(() => unavailable_instance(unavailable_alert));
     When(getting_availability);
     Then(() => alerts(
              AlertFactory.ServiceRedundancyLost(multi_instance_monitor.Info, "Redundancy has been lost.")));
 }
Example #2
0
        private void dependency_1_has_lost_redundancy()
        {
            var availability = Availability.Up();

            availability.Add(AlertFactory.ServiceRedundancyLost(Fake.AnInstanceMonitor.Info, "Ooops"));
            service_dependency_1.Monitor.Availability().Returns(availability);
            service_dependencies.Add(service_dependency_1);
        }
Example #3
0
 private void a_service_redundancy_lost_alert()
 {
     alert = AlertFactory.ServiceRedundancyLost(Fake.AnInstanceMonitor.Info, message);
 }