Esempio n. 1
0
 public void a_set_of_available_and_unavailable_instances_alerts_those_that_are_down()
 {
     Given(available_instance);
     And(() => unavailable_instance(unavailable_alert));
     When(getting_availability);
     Then(() => alerts(AlertFactory.InstanceUnavailable(unavailable_alert.Monitor, unavailable_alert.Message)));
 }
Esempio n. 2
0
 private void dependency_1_has_instance_unavailability()
 {
     service_dependency_1.Monitor.Availability().Returns(
         Availability.Up() | Availability.Up() |
         Availability.Down(AlertFactory.InstanceUnavailable(Fake.AnInstanceMonitor.Info, "Ooops"))
         );
     service_dependencies.Add(service_dependency_1);
 }
Esempio n. 3
0
 private void an_instance_unavailable_alert()
 {
     alert = AlertFactory.InstanceUnavailable(Fake.AnInstanceMonitor.Info, message);
 }