Anyone out there know how to replace a broken fridge thermo?

I have a bar size fidge, thermos broken, and i have an new thermo i want to put in it.

the only porblem is the thermo is capatable but not identical, and the wires are'nt the same colors. I think a multi-meter would be able to tell the right wires for the right terminals on the thermostat.

Anyone wanna help me fix it, i'll gladly pay them for the time it takes.