/// <summary> /// Get typical example <see cref="NimatorSettings"/> instance with dummy data. /// </summary> public static NimatorSettings GetExample() { return(new NimatorSettings { Notifiers = new NotifierSettings[] { ConsoleSettings.GetExample(), OpsGenieSettings.GetExample(), SlackSettings.GetExample(), }, Layers = new LayerSettings[] { new LayerSettings { Name = "Layer 1", Checks = new ICheckSettings[] { new NoopCheckSettings(), new NoopCheckSettings(), }, }, new LayerSettings { Name = "Layer 2", Checks = new ICheckSettings[] { new NoopCheckSettings(), new NoopCheckSettings(), }, } }, }); }
public void ToNotifier_ForSaneDefaultSettings_ReturnsNotifier() { var sut = new OpsGenieSettings { ApiKey = "dummy-key", HeartbeatName = "dummy-name", TeamName = "dummy-team", }; var result = sut.ToNotifier(); Assert.That(result, Is.Not.Null); }