Example #1
0
        /// <summary>
        /// Initializes a new instance of <see cref="Escapist"/>.
        /// </summary>
        /// <param name="escapeStrategyFactory">Implementation of <see cref="IEscapeStrategyFactory"/>.</param>
        public Escapist(IEscapeStrategyFactory escapeStrategyFactory)
        {
            if(escapeStrategyFactory == null)
                throw new ArgumentNullException(nameof(escapeStrategyFactory));

            _escapeStrategyFactory = escapeStrategyFactory;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of <see cref="Escapist"/>.
        /// </summary>
        /// <param name="escapeStrategyFactory">Implementation of <see cref="IEscapeStrategyFactory"/>.</param>
        public Escapist(IEscapeStrategyFactory escapeStrategyFactory)
        {
            if (escapeStrategyFactory == null)
            {
                throw new ArgumentNullException(nameof(escapeStrategyFactory));
            }

            _escapeStrategyFactory = escapeStrategyFactory;
        }