Two counties have sealed a deal with a Chinese company to generate over 1,000 megawatts of green energy.