Пример #1
0
        public void Validate()
        {
            // TODO refactor
            var validator = new OwnIdCoreConfigurationValidator();
            var result    = validator.Validate(string.Empty, _configuration);

            if (result.Failed)
            {
                throw new InvalidOperationException(result.FailureMessage);
            }
        }
 public void Validate_Invalid_CallbackUrl(string value)
 {
     var config = GetValidConfiguration();
     config.OwnIdApplicationUrl = value != null ? new Uri(value) : null;
     _validator.Validate(string.Empty, config).Failed.Should().BeTrue();
 }