Open the tins and put in your casserole. Fry the onions gently and then cook the sausages. Add the onions to the bean mixture with the ketchup. Once the sausages are cooked, chop into small pieces and add to the bean mix. Put the whole casserole dish into the oven and slowly bake for 30-45 minutes at 180 C / Gas 4.