Initialize() public method

public Initialize ( string startFolder ) : void
startFolder string
return void
Ejemplo n.º 1
0
        public EnvironmentEncrypter(string startFolder, string aesKey)
        {
            _envProvider = new EnvironmentProvider();
            _aesKey      = aesKey;

            _envProvider.Initialize(startFolder);
        }
        public EnvironmentEncrypter(string startFolder, string aesKey)
        {
            _envProvider = new EnvironmentProvider();
            _aesKey = aesKey;

            _envProvider.Initialize(startFolder);
        }
        public void Find_Environment()
        {
            var target = new EnvironmentProvider();

            target.Initialize(@"samples\PowerDeploy.Sample.XCopy".MapVcsRoot());
            var result = target.GetEnvironment("unittest");

            Assert.IsNotNull(result);
            Assert.AreEqual("unittest", result.Name);
            Assert.AreEqual("Jack", result["Firstname"].Value);
            Assert.AreEqual("Bauer", result["Lastname"].Value);
        }