예제 #1
0
        public void CreatePackage(TestSession testSession, PackageType packageType)
        {
            _metadataFilesCreator.Create(testSession.Archive, testSession.ArchiveMetadata);

            if (packageType == PackageType.SubmissionInformationPackage)
            {
                _informationPackageCreator.CreateSip(testSession.Archive);
            }
            else
            {
                _informationPackageCreator.CreateAip(testSession.Archive);
            }

            new InfoXmlCreator().CreateAndSaveFile(testSession.Archive, testSession.ArchiveMetadata);
        }
예제 #2
0
        public string CreatePackage(TestSession testSession, PackageType packageType, string outputDirectory)
        {
            _metadataFilesCreator.Create(testSession.Archive, testSession.ArchiveMetadata, packageType);

            string packageFilePath;

            if (packageType == PackageType.SubmissionInformationPackage)
            {
                packageFilePath = _informationPackageCreator.CreateSip(
                    testSession.Archive, testSession.ArchiveMetadata, outputDirectory
                    );
            }
            else // ArchivalInformationPackage
            {
                packageFilePath = _informationPackageCreator.CreateAip(
                    testSession.Archive, testSession.ArchiveMetadata, outputDirectory
                    );
            }

            return(packageFilePath);
        }
예제 #3
0
 public void SaveReport(TestSession testSession, FileInfo file)
 {
     _arkadeApi.SaveReport(testSession, file);
 }
예제 #4
0
 public void CreatePackage(TestSession testSession, PackageType packageType)
 {
     _arkadeApi.CreatePackage(testSession, packageType);
 }
예제 #5
0
파일: Arkade.cs 프로젝트: veridit/arkade5
 public void CreatePackage(TestSession testSession, PackageType packageType, string outputDirectory)
 {
     _arkadeApi.CreatePackage(testSession, packageType, outputDirectory);
 }