Ejemplo n.º 1
0
        public void ValidationShouldThrowException(string value)
        {
            var sut = Assert.Throws <ArgumentException>(() => TeamsMessageHelper.GuardUrlString(value, WebhookUrlParamName));

            Assert.Equal(WebhookUrlParamName, sut.ParamName);
        }
Ejemplo n.º 2
0
        public void ValidationShouldSuccess(string value)
        {
            var sut = Record.Exception(() => TeamsMessageHelper.GuardUrlString(value, WebhookUrlParamName));

            Assert.Null(sut);
        }
 internal void ValidateTeamsAttribute(TeamsAttribute attribute, Type pramType)
 {
     TeamsMessageHelper.GuardUrlString(attribute.WebhookUrl, nameof(attribute.WebhookUrl));
 }