Well, I didn't do it this way, but many others have. From what I understand (and no doubt someone will correct me if I am wrong!) you would then apply for Further Leave to Remain after your wedding. You may have to wait a while for processing, from what others have posted on here. Once that is sorted, you can work and everything as usual, and I believe you would then apply for your Indefinite Leave to Remain 2 years from the date the FLR is issued. Hopefully someone else will jump in here....