Esempio n. 1
0
 public void Evaluate(BottleConfiguration configuration)
 {
     if (!_settings.IsConfigured())
     {
         configuration.RegisterError(new OAuthNotConfigured());
     }
 }
 public void Evaluate(BottleConfiguration configuration)
 {
     if(!_settings.IsConfigured())
     {
         configuration.RegisterError(new OAuthNotConfigured());
     }
 }
        protected override void beforeEach()
        {
            theSettings      = new OAuthSettings();
            theConfiguration = new BottleConfiguration("Test");

            Services.Inject(theSettings);
        }
        public void Activate(IEnumerable<IPackageInfo> packages, IPackageLog log)
        {
            var configuration = new BottleConfiguration(_provenance);
            _rules.Each(r => r.Evaluate(configuration));

            if (!configuration.IsValid())
            {
                throw new BottleConfigurationException(_provenance, configuration.Errors);
            }
        }
Esempio n. 5
0
 public void SetUp()
 {
     theConfiguration = new BottleConfiguration("Test");
 }
 public void Evaluate(BottleConfiguration configuration)
 {
     throw new System.NotImplementedException();
 }
 public void SetUp()
 {
     theConfiguration = new BottleConfiguration("Test");
 }
 public void Evaluate(BottleConfiguration configuration)
 {
     throw new System.NotImplementedException();
 }