public static IRulesProcessor CreateRulesProcessor(ConnectionBase connection) { if (connection == null) { throw new ArgumentException("connection can not bu null."); } return(new GnipRulesProcessor(connection.GetRulesAPIURL(), connection.Username, connection.Password)); }