Skip to content

Commit

Permalink
restore RejectAll
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Dec 11, 2024
1 parent 759e12e commit c16b1f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Data;
using System.Diagnostics.CodeAnalysis;

namespace SmiServices.Microservices.CohortExtractor.RequestFulfillers;

// NOTE: Only used by IntegrationTest_Rejector
public class RejectAll : IRejector
{
public bool Reject(IDataRecord row, [NotNullWhen(true)] out string? reason)
{
reason = "Rejector is " + nameof(RejectAll);
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void IntegrationTest_Rejector(DatabaseType databaseType, Type? rejector)
_globals.DicomRelationalMapperOptions.QoSPrefetchCount = 5000;
_globals.DicomRelationalMapperOptions.DatabaseNamerType = typeof(GuidDatabaseNamer).FullName;

_globals.CohortExtractorOptions!.RejectorType = rejector?.Name;
_globals.CohortExtractorOptions!.RejectorType = rejector?.FullName;

_globals.FileSystemOptions!.DicomSearchPattern = "*";

Expand Down Expand Up @@ -627,14 +627,5 @@ public override void ClearCache() { }
return null;
}
}

private class RejectAll : IRejector
{
public bool Reject(IDataRecord row, [NotNullWhen(true)] out string? reason)
{
reason = "Rejector is " + nameof(RejectAll);
return true;
}
}
}
}

0 comments on commit c16b1f7

Please sign in to comment.