示例#1
0
        public void ApplicationKeyValidator_ThrowsOnInvalidKey()
        {
            var target = new ApplicationKeyValidator();

            target.Validate("test", "ThisShouldFail");
        }
示例#2
0
        public void ApplicationKeyValidator_ThrowsOnNullValue()
        {
            var target = new ApplicationKeyValidator();

            target.Validate("test", null);
        }
示例#3
0
        public void ApplicationKeyValidator_WorksCorrectly()
        {
            var target = new ApplicationKeyValidator();

            target.Validate("test", "azGDORePK8gMaC0QOYAMyEEuzJnyUi");  //Example app-key taken from https://pushover.net/api#registration
        }