/// <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; }
/// <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; }