public void Send() { CheckApiKey(); if (!Glitch.Config.Notify || Glitch.Config.IgnoreErrors.Exclude(this)) { return; } ApplyDefaultsIfNeeded(); NotificationSenderFactory.Create().Send(this); }
public void TestCleanup() { NotificationSenderFactory.ResetFactoryFunc(); }
public void TestInitialize() { NotificationSenderFactory.SetFactoryFunc(() => _notificationSenderMock.Object); }