public void CopyWithRegion(string region) { Config configuration = new ConfigFileReader().Read(region); string copyPath = Path.Combine(Environment.CurrentDirectory, region); new EnviromentBasedFolder().CreateAndCopyFile(region, configuration.CopyfilePath); new ZipUtility().Zipfolder(copyPath); }
public void FindtheRegionsAvailbleForApplications() { ConfigFileReader reader = new ConfigFileReader(); Config config = reader.Read("dev"); config.serverUrl.Should().Be("http://192.168.1.4:8172"); config.CopyfilePath.Should().BeNull(); config.DeployFolder.Should().Be("E:\\DeployFolder"); }
public void FindthesourcepathoftheApplication() { ConfigFileReader reader = new ConfigFileReader(); Config config=reader.Read("dev"); config.SourcePath.Should().Be(string.Empty); }
public void CopyWithDesitination(string region, string copyPath) { Config configuration = new ConfigFileReader().Read(region); new EnviromentBasedFolder().CreateAndCopyFile(region, copyPath); new ZipUtility().Zipfolder(copyPath); }