public TranslatorDirectedItemsToMdSelection(IConnecter connecter, IConverter <Connection, MarkdownConnection> converter, IFilter <MarkdownConnection> filter, IHandlerConnections <MarkdownConnection, MdConvertedItem> handler) { RaiseIfGivenArgumentsAreIncorrect(connecter, converter, filter, handler); this.connecter = connecter; this.converter = converter; this.filter = filter; this.handler = handler; }
private void RaiseIfGivenArgumentsAreIncorrect(IConnecter connecter, IConverter <Connection, MarkdownConnection> converter, IFilter <MarkdownConnection> filter, IHandlerConnections <MarkdownConnection, MdConvertedItem> handler) { if (connecter == null) { throw new ArgumentException("Connector should not be a null"); } if (converter == null) { throw new ArgumentException("Converter should not be a null"); } if (filter == null) { throw new ArgumentException("Filter should not be a null"); } if (handler == null) { throw new ArgumentException("Handle should not be a null"); } }