/// <summary> /// Create a test set of TagReplacements. /// </summary> /// <param name="random">Random.</param> /// <param name="tagReplacementOperation">Tag replacement operation.</param> /// <returns>List of TagReplacements.</returns> public static IEnumerable <TagReplacement> CreateTestTagReplacements(Random random, TagReplacementOperation tagReplacementOperation) => DicomLongStringTagRandomisers.Select( dicomTag => new TagReplacement( tagReplacementOperation, new DicomConstraints.DicomTagIndex(dicomTag), RandomString(random, 8))).ToList();
/// <summary> /// Initializes a new instance of the <see cref="TagReplacement"/> class. /// </summary> /// <param name="operation">The operation.</param> /// <param name="dicomTagIndex">Index of the dicom tag.</param> /// <param name="value">The value.</param> /// <exception cref="ArgumentNullException"> /// dicomTagIndex /// or /// value /// </exception> public TagReplacement(TagReplacementOperation operation, DicomTagIndex dicomTagIndex, string value) { Operation = operation; DicomTagIndex = dicomTagIndex ?? throw new ArgumentNullException(nameof(dicomTagIndex)); Value = value ?? throw new ArgumentNullException(nameof(value)); }