public void TestSetup() { previousTree = new ObjectNode("tree1"); parsedTree = new ObjectNode("tree2"); zoneParser = Substitute.For <IZoneParser>(); zoneParser.Parse(Arg.Any <DirectoryInfo>()).Returns(_ => parsedTree); folder = new DirectoryInfo(Guid.NewGuid().ToString()); folder.Create(); enabledUpdater = new LocalUpdater(true, folder, zoneParser); disabledUpdater = new LocalUpdater(false, null, null); }
public LocalUpdater(bool enabled, DirectoryInfo folder, IZoneParser zoneParser) { this.enabled = enabled; this.folder = folder; this.zoneParser = zoneParser; }