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); }
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); }
public void SaveReport(TestSession testSession, FileInfo file) { _arkadeApi.SaveReport(testSession, file); }
public void CreatePackage(TestSession testSession, PackageType packageType) { _arkadeApi.CreatePackage(testSession, packageType); }
public void CreatePackage(TestSession testSession, PackageType packageType, string outputDirectory) { _arkadeApi.CreatePackage(testSession, packageType, outputDirectory); }