public SalesForcePackager(DiffCollector differ, Bundler bundler, FilePackager packager, PackageXmlGenerator manifestGenerator, IFileSystem fs, IOutput output) { _differ = differ; _bundler = bundler; _packager = packager; _manifestGenerator = manifestGenerator; _fs = fs; _output = output; }
public void SetUp() { _fakeFilesystem = new MockFileSystem(new Dictionary <string, MockFileData> { { @"c:\repo\appMenus\Salesforce1.appMenu", new MockFileData("file1") }, }); _gen = new PackageXmlGenerator(_fakeFilesystem, new FakeOutput()); }
public void GenerateFor_GivenDirectoryWithSpecialDirectory_PrefixesWithApex(string dirname, string className) { _gen = new PackageXmlGenerator(new MockFileSystem(new Dictionary <string, MockFileData> { { $@"c:\repo\{dirname}\Salesforce1.appMenu", new MockFileData("file1") }, }), new FakeOutput()); var package = _gen.GenerateFor("c:\\repo"); Assert.That(package.types[0].name, Is.EqualTo(className)); }