Whenever the legislative or governing body of the state or any county, city, school district, other municipal corporation, taxing district, or any agency, instrumentality, or public corporation thereof shall desire to issue bonds of any kind and shall have passed an ordinance or resolution authorizing the same, the validity of such proposed bond issue may be tested and determined in the manner provided in this chapter.