public App( SfLocator locator, SfProjectHandler projectHandler, ServiceHashCalculator hasher, IHandleClusterConnection fabricRemote, VersionHandler versionHandler, VersionService versionService, Packager packager, AppConfig baseConfig, DeployScriptCreator scriptCreator, ConsoleWriter log, ManifestHandler manifestReader, VersionMapHandler versionMapHandler, Hack hack) { _locator = locator; _projectHandler = projectHandler; _hasher = hasher; _fabricRemote = fabricRemote; _versionHandler = versionHandler; _versionService = versionService; _packager = packager; _baseConfig = baseConfig; _scriptCreator = scriptCreator; _log = log; _manifestReader = manifestReader; _versionMapHandler = versionMapHandler; _hack = hack; }
public void ItShouldExtractApplicationPackageRootFromSfProj() { string actual; using (var fileStream = new FileStream(@"DescribeSfProjectHandler\Example.sfproj", FileMode.Open)) using (var reader = XmlReader.Create(fileStream)) { var document = new XmlDocument(); document.Load(reader); var manager = new XmlNamespaceManager(document.NameTable); manager.AddNamespace("x", "http://schemas.microsoft.com/developer/msbuild/2003"); actual = SfProjectHandler.ExtractApplicationManifest(@"C:\", document, manager); } actual.Should().Be("C:\\ApplicationPackageRoot"); }