public void NotifyTestHttpChecker() { string username = "******"; // TODO: Initialize to an appropriate value string key = "f3aa9bf27db60674f228fd90beeb028897657c4a6450fc9de8a8c87221a12dcfe"; // TODO: Initialize to an appropriate value string senderName = "ND"; // TODO: Initialize to an appropriate value IEnumerable<string> destinations = new string[] {"+61433003505" }; // TODO: Initialize to an appropriate value SimpleNotifier target = new SimpleNotifier(username, key, senderName, destinations); // TODO: Initialize to an appropriate value CheckResult checkResult = new CheckResult(false, new Dictionary<string, string>()); // TODO: Initialize to an appropriate value string configuration = "Test"; // TODO: Initialize to an appropriate value target.Notify(checkResult, configuration); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public virtual void Begin() { result = checker.Check(); if (notifyResultFilters != null) { foreach (INotifyResultFilter filter in notifyResultFilters) { if (filter.Evaluate(result)) { passedFilters.Add(filter); } else { return; } } } if (notifier != null) { notifier.Notify(result, identifier); } }
public virtual void Begin() { result = checker.Check(); if (notifyResultFilters != null) foreach (INotifyResultFilter filter in notifyResultFilters) if (filter.Evaluate(result)) passedFilters.Add(filter); else return; if (notifier != null) notifier.Notify(result, identifier); }