/// <summary>
        /// Gets the anonymisation engine for the input protocol. If the input protocol is null we will fallback
        /// to using the segmentation service anonymisation protocol.
        /// </summary>
        /// <param name="anonymisationProtocolId">The anonymisation protocol unqiue identifier.</param>
        /// <param name="anonymisationProtocol">The anonymisation protocol.</param>
        /// <returns>The anonymisation engine.</returns>
        private static AnonymizeEngine GetAnonymisationEngine(Guid anonymisationProtocolId, IEnumerable <DicomTagAnonymisation> anonymisationProtocol)
        {
            var anonymisationEngine = new AnonymizeEngine(Mode.blank);
            var tagHandler          = new AnonymisationTagHandler(anonymisationProtocolId, anonymisationProtocol);

            anonymisationEngine.RegisterHandler(tagHandler);

            Trace.TraceInformation(string.Join(Environment.NewLine, anonymisationEngine.ReportRegisteredHandlers()));

            return(anonymisationEngine);
        }
        public void RegistreredHandlersReport()
        {
            var anon = new AnonymizeEngine(Mode.clone);
            var cp   = new ConfidentialityProfile();

            anon.RegisterHandler(cp);

            var report = anon.ReportRegisteredHandlers();

            Assert.AreEqual(336, report.Count);
        }