Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Jul 2, 2024
1 parent fa2acce commit 0e9aa26
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
9 changes: 5 additions & 4 deletions Rdmp.Dicom.Tests/TestProcessBasedCacheSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ public void TestWithEcho()
var dir = new DirectoryInfo(TestContext.CurrentContext.WorkDirectory);
var loadDir = LoadDirectory.CreateDirectoryStructure(dir, "blah", true);

lmd.LocationOfForLoadingDirectory = Path.Join(loadDir.RootPath.FullName, "Data", "ForLoading");
lmd.LocationOfForArchivingDirectory = Path.Join(loadDir.RootPath.FullName, "Data", "ForArchiving");
lmd.LocationOfExecutablesDirectory = Path.Join(loadDir.RootPath.FullName, "Executables");
lmd.LocationOfCacheDirectory = Path.Join(loadDir.RootPath.FullName, "Cache"); lmd.SaveToDatabase();
lmd.LocationOfForLoadingDirectory = loadDir.ForLoading.FullName;
lmd.LocationOfForArchivingDirectory = loadDir.ForArchiving.FullName;
lmd.LocationOfExecutablesDirectory = loadDir.ExecutablesPath.FullName;
lmd.LocationOfCacheDirectory = loadDir.Cache.FullName;
lmd.SaveToDatabase();

source.PreInitialize(new CacheFetchRequestProvider(cp), ThrowImmediatelyDataLoadEventListener.Quiet);
source.PreInitialize(cp.CatalogueRepository, ThrowImmediatelyDataLoadEventListener.Quiet);
Expand Down
8 changes: 4 additions & 4 deletions Rdmp.Dicom/CommandExecution/ExecuteCommandCFind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public ExecuteCommandCFind(IBasicActivateItems activator, string start, string e

var dir = Directory.CreateDirectory(outDir);
var results = LoadDirectory.CreateDirectoryStructure(dir, "out", true);
lmd.LocationOfForLoadingDirectory = Path.Join(results.RootPath.FullName, "Data", "ForLoading");
lmd.LocationOfForArchivingDirectory = Path.Join(results.RootPath.FullName, "Data", "ForArchiving");
lmd.LocationOfExecutablesDirectory = Path.Join(results.RootPath.FullName, "Executables");
lmd.LocationOfCacheDirectory = Path.Join(results.RootPath.FullName, "Cache");
lmd.LocationOfForLoadingDirectory = results.ForLoading.FullName;
lmd.LocationOfForArchivingDirectory = results.ForArchiving.FullName;
lmd.LocationOfExecutablesDirectory = results.ExecutablesPath.FullName;
lmd.LocationOfCacheDirectory = results.Cache.FullName;
lmd.SaveToDatabase();

var lp = new LoadProgress(memory, lmd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ public override void Execute()
new Core.Logging.LogManager(_loggingServer).CreateNewLoggingTaskIfNotExists(loadName);

var projDir = LoadDirectory.CreateDirectoryStructure(_projectDirectory, "ImageLoading", true);
NewLoadMetadata.LocationOfForLoadingDirectory = Path.Join(projDir.RootPath.FullName, "Data", "ForLoading");
NewLoadMetadata.LocationOfForArchivingDirectory = Path.Join(projDir.RootPath.FullName, "Data", "ForArchiving");
NewLoadMetadata.LocationOfExecutablesDirectory = Path.Join(projDir.RootPath.FullName, "Executables");
NewLoadMetadata.LocationOfCacheDirectory = Path.Join(projDir.RootPath.FullName, "Cache");
NewLoadMetadata.LocationOfForLoadingDirectory = projDir.ForLoading.FullName;
NewLoadMetadata.LocationOfForArchivingDirectory = projDir.ForArchiving.FullName;
NewLoadMetadata.LocationOfExecutablesDirectory = projDir.ExecutablesPath.FullName;
NewLoadMetadata.LocationOfCacheDirectory = projDir.Cache.FullName;
NewLoadMetadata.SaveToDatabase();

/////////////////////////////////////////////Attacher////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions Rdmp.Dicom/CommandExecution/ExecuteCommandPacsFetch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public ExecuteCommandPacsFetch(IBasicActivateItems activator, string start, stri

var dir = Directory.CreateDirectory(outDir);
var results = LoadDirectory.CreateDirectoryStructure(dir, "out", true);
lmd.LocationOfForLoadingDirectory = Path.Join(results.RootPath.FullName, "Data", "ForLoading");
lmd.LocationOfForArchivingDirectory = Path.Join(results.RootPath.FullName, "Data", "ForArchiving");
lmd.LocationOfExecutablesDirectory = Path.Join(results.RootPath.FullName, "Executables");
lmd.LocationOfCacheDirectory = Path.Join(results.RootPath.FullName, "Cache");
lmd.LocationOfForLoadingDirectory = results.ForLoading.FullName;
lmd.LocationOfForArchivingDirectory = results.ForArchiving.FullName;
lmd.LocationOfExecutablesDirectory = results.ExecutablesPath.FullName;
lmd.LocationOfCacheDirectory = results.Cache.FullName;
lmd.SaveToDatabase();

var lp = new LoadProgress(memory, lmd);
Expand Down

0 comments on commit 0e9aa26

Please sign in to comment.