Example #1
0
 public ConfigurationVariablesBehaviour(ICalamariFileSystem fileSystem, IVariables variables, IConfigurationVariablesReplacer replacer, ILog log)
 {
     this.fileSystem = fileSystem;
     this.variables  = variables;
     this.replacer   = replacer;
     this.log        = log;
 }
        public void SetUp()
        {
            fileSystem = Substitute.For <ICalamariFileSystem>();
            fileSystem.EnumerateFilesRecursively(Arg.Any <string>(), Arg.Any <string[]>()).Returns(new[]
            {
                "C:\\App\\MyApp\\Web.config",
                "C:\\App\\MyApp\\Web.Release.config",
                "C:\\App\\MyApp\\Views\\Web.config"
            });

            deployment = new RunningDeployment("C:\\Packages", new CalamariVariableDictionary());
            replacer   = Substitute.For <IConfigurationVariablesReplacer>();
        }
        public void SetUp()
        {
            fileSystem = Substitute.For<ICalamariFileSystem>();
            fileSystem.EnumerateFilesRecursively(Arg.Any<string>(), Arg.Any<string[]>()).Returns(new[]
            {
                "C:\\App\\MyApp\\Web.config",
                "C:\\App\\MyApp\\Web.Release.config",
                "C:\\App\\MyApp\\Views\\Web.config"
            });

            deployment = new RunningDeployment("C:\\Packages", new CalamariVariableDictionary());
            replacer = Substitute.For<IConfigurationVariablesReplacer>();
        }
 public ConfigurationVariablesConvention(ICalamariFileSystem fileSystem, IConfigurationVariablesReplacer replacer)
 {
     this.fileSystem = fileSystem;
     this.replacer   = replacer;
 }
 public ConfigurationVariablesConvention(ICalamariFileSystem fileSystem, IConfigurationVariablesReplacer replacer)
 {
     this.fileSystem = fileSystem;
     this.replacer = replacer;
 }