In a large bowl combine all the beans, the onion and the green pepper. In a small bowl, add the sugar and vinegar and slowly add olive oil. Whisk until well blended and add salt, pepper and celery seed. Pour over the bean mixture, stir until blended. Let sit overnight for best flavor.