9 The power to order costs is a discretionary power. Ordinarily, the power is exercised after a hearing on the merits and, as a general rule, the successful party is entitled to his or her costs. Success in the action or on the particular issues is the fact that usually controls the exercise of the discretion. A successful party is prima facie entitled to a costs order: Latoudis v Casey [1990] HCA 59; (1990) 170 CLR 534, 566 - 568 (McHugh J). However, when there has been no hearing on the merits, a court is necessarily deprived of the factor that usually determines whether or how it will make a costs order: Re Minister for Immigration and Ethnic Affairs; Ex parte Lai Qin [1997] HCA 6; (1997) 186 CLR 622, 624 (McHugh J). The issue about costs cannot be resolved by the court trying a hypothetical action between the parties because this would burden the parties with the cost of a litigated action which, by the abandonment of the action, they have avoided: Re Minister for Immigration and Ethnic Affairs; Ex parte Lai Qin (624). If it appears that both parties have acted reasonably in commencing and defending the proceedings and the conduct of the parties continued to be reasonable until the litigation was settled, or its further prosecution became futile, the proper exercise of the costs discretion will usually mean the court will make no order as to costs of the proceedings: Re Minister for Immigration and Ethnic Affairs; Ex parte Lai Qin (625). However, if after litigating for some time, one party effectively surrenders to the other, then the court may make a costs order against that party: One.Tel Ltd v Commissioner of Taxation [2000] FCA 270; (2000) 101 FCR 548, 552 - 553 (Burchett J); Edwards Madigan Torzillo Briggs Pty Ltd v Stack [2003] NSWCA 302. This might be justified where it was clear that the strength of the other side's case led to the surrender thereby allowing the inference to be drawn that the abandoning party had acted unreasonably in suing or defending in the first place.