示例#1
0
        /// <summary>
        /// Registers a number of <see cref="ISopDataSource"/>s with the <see cref="UnitTestStudyLoader"/>.
        /// </summary>
        /// <remarks>
        /// <para>Dispose the returned context to unregister the data sources.</para>
        /// <para>This method is thread safe.</para>
        /// </remarks>
        /// <param name="server">Specifies the "server" on which these data sources "reside."</param>
        /// <param name="sopDataSources">The <see cref="ISopDataSource"/>s to be registered.</param>
        /// <returns>A context object that should be disposed in order to unregister the data sources.</returns>
        public static UnitTestStudyProviderContext RegisterStudies(IDicomServiceNode server, IEnumerable <ISopDataSource> sopDataSources)
        {
            var unitTestStudyProvider = new UnitTestStudyProviderContext(server, sopDataSources);

            RegisterStudyProvider(unitTestStudyProvider);
            return(unitTestStudyProvider);
        }
		/// <summary>
		/// Registers a number of <see cref="ISopDataSource"/>s with the <see cref="UnitTestStudyLoader"/>.
		/// </summary>
		/// <remarks>
		/// <para>Dispose the returned context to unregister the data sources.</para>
		/// <para>This method is thread safe.</para>
		/// </remarks>
		/// <param name="server">Specifies the "server" on which these data sources "reside."</param>
		/// <param name="sopDataSources">The <see cref="ISopDataSource"/>s to be registered.</param>
		/// <returns>A context object that should be disposed in order to unregister the data sources.</returns>
		public static UnitTestStudyProviderContext RegisterStudies(IDicomServiceNode server, IEnumerable<ISopDataSource> sopDataSources)
		{
			var unitTestStudyProvider = new UnitTestStudyProviderContext(server, sopDataSources);
			RegisterStudyProvider(unitTestStudyProvider);
			return unitTestStudyProvider;
		}