public void IsSupportInvalid() { var config = new TriggrConfig(); config.Url = "http://www.triggr.com/"; config.Webhook = true; var mock = new Mock <IOptions <TriggrConfig> >(); mock.Setup(i => i.Value).Returns(config); WebhookService service = new WebhookService(null, mock.Object, null); Assert.False(service.IsSupport("http://bitbucket.com/lyzerk/TriggrTestProject")); }