public ExtendedQueryTagStoreEntry(int key, string path, string vr, string privateCreator, QueryTagLevel level, ExtendedQueryTagStatus status)
 {
     Key            = key;
     Path           = path;
     VR             = vr;
     PrivateCreator = privateCreator;
     Level          = level;
     Status         = status;
 }
Пример #2
0
 public ExtendedQueryTagStoreJoinEntry(
     int key,
     string path,
     string vr,
     string privateCreator,
     QueryTagLevel level,
     ExtendedQueryTagStatus status,
     QueryStatus queryStatus,
     int errorCount,
     Guid?operationId = null)
     : base(key, path, vr, privateCreator, level, status, queryStatus, errorCount)
 {
     OperationId = operationId;
 }
Пример #3
0
 private void AssertTag(
     int key,
     AddExtendedQueryTagEntry expected,
     ExtendedQueryTagStoreJoinEntry actual,
     ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready,
     QueryStatus queryStatus       = QueryStatus.Enabled,
     Guid?operationId = null)
 {
     Assert.Equal(key, actual.Key);
     Assert.Equal(expected.Path, actual.Path);
     Assert.Equal(expected.PrivateCreator, actual.PrivateCreator);
     Assert.Equal(expected.VR, actual.VR);
     Assert.Equal(expected.Level, actual.Level);
     Assert.Equal(status, actual.Status); // Typically we'll set the status to Adding
     Assert.Equal(queryStatus, actual.QueryStatus);
     Assert.Equal(operationId, actual.OperationId);
 }
Пример #4
0
 public static ExtendedQueryTagStoreEntry BuildExtendedQueryTagStoreEntry(this DicomTag tag, int key = 1, string vr = null, string privateCreator = null, QueryTagLevel level = QueryTagLevel.Series, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
 {
     return(new ExtendedQueryTagStoreEntry(key: key, path: tag.GetPath(), vr: vr ?? tag.GetDefaultVR().Code, privateCreator: privateCreator, level: level, status: status));
 }
Пример #5
0
 public static GetExtendedQueryTagEntry BuildGetExtendedQueryTagEntry(this DicomTag tag, string vr = null, string privateCreator = null, QueryTagLevel level = QueryTagLevel.Series, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
 {
     return(new GetExtendedQueryTagEntry {
         Path = tag.GetPath(), VR = vr ?? tag.GetDefaultVR()?.Code, PrivateCreator = privateCreator, Level = level, Status = status
     });
 }
Пример #6
0
 private static GetExtendedQueryTagEntry CreateExtendedQueryTagEntry(string path, string vr, string privateCreator, QueryTagLevel level = QueryTagLevel.Instance, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
 {
     return(new GetExtendedQueryTagEntry {
         Path = path, VR = vr, PrivateCreator = privateCreator, Level = level, Status = status
     });
 }
Пример #7
0
        private async Task AssertAddedAsync(int key, AddExtendedQueryTagEntry expected, ExtendedQueryTagStatus status = ExtendedQueryTagStatus.Ready)
        {
            ExtendedQueryTagStoreJoinEntry actual = await _extendedQueryTagStore.GetExtendedQueryTagAsync(expected.Path);

            AssertTag(key, expected, actual, status);
        }
 public ExtendedQueryTagStoreEntry(int key, string path, string vr, string privateCreator, QueryTagLevel level, ExtendedQueryTagStatus status, QueryStatus queryStatus, int errorCount)
 {
     Key            = key;
     Path           = EnsureArg.IsNotNullOrWhiteSpace(path);
     VR             = EnsureArg.IsNotNullOrWhiteSpace(vr);
     PrivateCreator = privateCreator;
     Level          = EnsureArg.EnumIsDefined(level);
     Status         = EnsureArg.EnumIsDefined(status);
     QueryStatus    = EnsureArg.EnumIsDefined(queryStatus);
     ErrorCount     = EnsureArg.IsGte(errorCount, 0, nameof(errorCount));
 }