public void SetUp() { if (Directory.Exists("zip")) { Directory.Delete("zip", true); } Directory.CreateDirectory("zip"); theRequest = new ZipFolderRequest { FileSet = new FileSet(), RootDirectory = Path.GetFullPath("zip"), ZipDirectory = string.Empty }; }
protected override void beforeEach() { theBaseFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "folder1"); theManifest = new PackageManifest(); theManifest.SetRole(BottleRoles.Data); theInput = new CreateBottleInput { PackageFolder = theBaseFolder }; theZipFile = new StubZipFile(); ClassUnderTest.AddDataFiles(theInput, theZipFile, theManifest); theRequest = theZipFile.ZipRequests.Single(); }
public void AddFiles(ZipFolderRequest request) { ZipRequests.Add(request); }