Beispiel #1
0
        public void CreateZipFile(string fileName, Action <IZipFile> configure)
        {
            _fileName = fileName;
            var stubFile = new StubZipFile();

            configure(stubFile);

            _allEntries = stubFile.AllZipEntries;
            _requests   = stubFile.ZipRequests;
        }
Beispiel #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();
        }