Esempio n. 1
0
        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
            };
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public void AddFiles(ZipFolderRequest request)
 {
     ZipRequests.Add(request);
 }
Esempio n. 4
0
        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
            };
        }
Esempio n. 5
0
 public void AddFiles(ZipFolderRequest request)
 {
     ZipRequests.Add(request);
 }