public OctopusIntegrationTests()
        {
            var filterConfig = new FilterConfiguration
            {
                Environments = { "dev" }
            };

            _config = Substitute.For<IConfiguration>();
            _config.OctopusHost.Returns(new Uri("http://172.28.128.20"));
            _config.OctopusApiKey.Returns("API-F6LZ4DWCNSDVWNSXVIOIMA11S");
            _config.VariableSetName.Returns("ConsulSet");
            _config.Filter.Returns(filterConfig);

            _filter = new VariableFilter(_config);
        }
Exemplo n.º 2
0
 public ReadVariablesQuery(IConfiguration config, VariableFilter filter)
     : base(config)
 {
     _filter = filter;
 }
Exemplo n.º 3
0
 public WriteVariableCommand(IConfiguration config, VariableFilter filter)
     : base(config)
 {
     _config = config;
     _filter = filter;
 }
 public DeleteVariableCommand(IConfiguration config, VariableFilter filter)
     : base(config)
 {
     _filter = filter;
 }