¶ 1. We review a pub*364lished court of appeals decision1 involving a dispute over the amount of money due to a shareholder for his shares in Sideline Software, Inc. (Sideline), a company that serves the fantasy football league market with an online league-management program. Because we agree that the balancing of the equities required in a specific performance claim did not occur and summary judgment was improperly granted, we affirm the court of appeals' decision to reverse and remand for the circuit court to evaluate the claim under the principles governing specific performance, determining 1) whether specific performance is available as a remedy, 2) whether there was a substantial enough breach to warrant specific performance, 3) whether the equities lie on the plaintiffs or defendant's side, and 4) whether anything would make an order of specific performance unfair, unreasonable or impossible.
¶ 2. The minority shareholder, Christopher Beidel, sought specific performance of the Stock Repurchase Agreement2 that he and Michael Hall, the majority shareholder, had signed. Beidel's claim rests on two provisions of the Agreement. One provision sets a stipulated price per share that is in effect for two years; if that price expires without a new stipulation, the share value is to be determined by an appraiser selected by Sideline. The other provision gives a shareholder *365whose employment is terminated without cause while a stipulated price is in effect the right to exercise a put option3 to sell his shares at the stipulated price. The dispute: Sideline thinks it must pay only the appraised value for Beidel's shares, and Beidel thinks Sideline must pay the stipulated share price, which is some six times more.4
¶ 3. After it became clear that Sideline was planning to terminate him and was transitioning his duties to others while delaying the termination until the stipulated price expired, Beidel gave written notice that he was exercising his put option and demanding that 2,490 of his shares be purchased at the stipulated price of $1,600 per share, which had not yet expired. When Sideline refused to purchase Beidel's shares, Beidel brought a claim for specific performance, seeking to have the court order Sideline to purchase the shares at the stipulated price, for a total of nearly four million dollars.
¶ 4. At the heart of the equitable claim this case presents is the question of whether it was fair for Sideline to time a planned termination without cause to avoid paying Beidel $1,600 per share and instead choose to let the stipulated price expire before terminating him so that Sideline could instead pay only the fair market value of the shares. Beidel contends that Hall had explicitly told him in 2008 Sideline would terminate *366Beidel as soon as the stipulated purchase price expired; Beidel contends that Sideline essentially terminated him in 2008, transitioning his duties to others and unfairly delaying the formal termination solely to avoid paying the stipulated purchase price then in effect.
¶ 5. Sideline does not dispute that the delay was due to a desire to avoid the stipulated share price; rather, it asserts that it was free to time the termination as it saw fit. Under Sideline's interpretation of the contract, refusing to pay Beidel the stipulated share price was not a breach of the Agreement because Beidel's option to sell the shares for that price was never triggered: no termination actually occurred until September 17, 2009. Sideline says Beidel is therefore entitled, under the applicable provision of the Agreement, only to "the fair market value of the [s]tock as determined by an appraiser selected by Sideline."
¶ 6. The court of appeals decision we review reversed a grant of summary judgment for Sideline on the grounds that "[t]he circuit court did not... consider the balancing of equities required in a case where a party seeks specific performance of a contract." Beidel v. Sideline Software, Inc., 2012 WI App 36, ¶ 16, 340 Wis. 2d 433, 811 N.W.2d 856. The court of appeals considered the fact that Beidel had sought specific performance and focused on "the special implications of that request for relief." Id., ¶ 14. The court of appeals concluded that although the circuit court's analysis correctly disposed of one aspect of Beidel's argument, "there is more" to evaluating a claim seeking specific performance. Id., ¶ 13.
¶ 7. The circuit court had granted Sideline's motion for summary judgment on the claim of specific performance, basing its holding on the conclusion that the claim could not rest on an allegation that Sideline *367had constructively terminated Beidel because a required element of constructive termination was undisputedly absent.5 That is a correct statement of Wisconsin law concerning the test for constructive termination. This was not, however, a claim for wrongful termination, and, as the court of appeals rightly recognized, the claim that was made was never properly addressed.
¶ 8. The record indicates, too, that the circuit court voiced observations that would be relevant to the task of balancing the equities. As the court of appeals noted, the circuit court appeared somewhat reluctant to dismiss Beidel's claim on these facts; the circuit court stated that "[a] strong argument can be made that this scenario is so strong [that it resembles constructive termination]."
¶ 9. Besides that, it is potentially relevant to consider the circuit court's disposition of two other counts that were a part of this multi-count lawsuit,6 claims that were against Hall and another individual and arose from the same underlying facts. When those counts were before the circuit court for summary judgment disposition along with this one, the court declined to grant the defendants summary judgment for a notable reason: it found that "there are questions of fact with respect to [whether] they act[ed] in good faith" and whether they were acting in the best interest of the company or were "out to get Mr. Beidel." Those counts *368remained after this count was dismissed, and they proceeded to a jury trial after this count was dismissed.7 While this appeal does not concern those claims, the motion hearing transcript in which the circuit court addressed all three counts clearly reflects the circuit court's conclusion that summary judgment was precluded as to Counts 2 and 3 by genuine issues of material fact that related to good faith among the parties and their dealings with each other. There is no evidence in the record that those concerns were addressed in the context of the specific performance claim, a claim that by definition turns on equitable considerations. Such a claim should not be disposed of on summary judgment without addressing them.
¶ 10. Further, as the court of appeals observed, "[t]he rule that parties to a contract act in good faith is universal."8 We have held that "[ejvery contract implies good faith and fair dealing between the parties to it," and that mere "compliance in form, not in substance" is a breach of "the covenant of good faith that accompanies every contract."9
*369¶ 11. We therefore agree with the court of appeals that summary judgment was improperly granted in this case without the required balancing of the equities that are due to a specific performance claim and without a consideration of the potential application of the covenant of good faith and fair dealing. In order to make a prima facie case that Sideline was entitled to summary judgment, its motion would need to show a defense that would defeat Beidel's claim. That is, it must successfully attack the requirements for obtaining specific performance:
- that specific performance is available as a remedy10;
- that there has been a substantial enough breach to warrant specific performance11; and
- that the equities lie on [the plaintiffs] side,12 and that nothing would make an order of specific performance unfair, unreasonable or impossible.13
In determining whether the requirements for specific *370performance have been met in this case, it will be necessary for the court to interpret and apply the provisions of the Stock Repurchase Agreement, with special reference to Section 6, Termination of Employment without Cause, as well as Sections 8(b) and (c), which relate to valuation. In this case the analysis necessarily involves interpreting the contract and determining whether the undefined term "termination" is ambiguous, and if so, what the parties intended the term to mean. Extrinsic evidence may be needed in order to make the determination of the parties' intent.
*369369
*370¶ 12. Sideline's motion for summary judgment does not set forth such a defense, and therefore fails to make a prima facie case.14 Accordingly, we affirm the court of appeals and remand for "the circuit court's determination where the bulk of the equities lie, including an evaluation of what the parties intended when they agreed to the stock re-purchase agreement, and whether it should grant specific performance as Beidel requested." Beidel, 340 Wis. 2d 433, ¶ 16. A circuit court may grant summary judgment to a party on remand as warranted after the equities have been balanced, recognizing the implications of the nature of a claim for specific performance and the well-established obligation of good faith and fair dealing.15
*371I. BACKGROUND
¶ 13. The case arises in the context of a deteriorating relationship between a majority shareholder and a minority shareholder. We briefly set forth a description of the parties, their relationship and the terms of the contract at the center of this dispute.
¶ 14. Sideline began by selling a computer program for fantasy football league management; it later moved to online products for that same purpose. It was incorporated in 1998 by Hall and Beidel, who had been college friends. Though the distribution of the shares changed over the years, Hall was from the beginning the majority shareholder, and at the relevant time, Hall owned 2,505 shares (slightly over half) and Beidel owned 2,495 shares. In the course of expanding the business, the company purchased in 2001 a small company that had developed an online product. Its owner, Kevin Austin, possessed the kind of programming skills that such online products required; he was initially engaged as a consultant and ultimately was hired and granted options to purchase outstanding shares of the company. Austin and Beidel did not have a good relationship; the deterioration of that relationship appears to have played a significant role in Beidel's eventual departure from the company.
¶ 15. In 2004, Beidel and Hall signed a Stock Repurchase Agreement that was intended to "provide a means of assuring a market for the sale of their Stock in certain specified events." As relevant to this appeal, the Agreement contained the following provisions. It contained a stipulation that specific performance is the *372appropriate remedy for breach.16 It contained a provision that if a shareholder (that is, Hall or Beidel) were fired without cause, Sideline would buy that shareholder's stock at an agreed price. The clause, section 6 of the Agreement, reads:
Termination of Employment Without Cause; Shareholder's Put Option. Upon the termination of a Shareholder's employment with Sideline without cause (as defined in section 7(b) below), the terminated Shareholder shall have a continuing option to sell all or any part of the Stock owned by him, and upon exercise of such option, Sideline shall have the obligation to purchase all of Shareholder's Stock so elected for sale by such Shareholder, at the price and on the terms provided in sections 8 and 9 below. Provided, however, that such purchase and sale shall be subject to the restrictions and limitations set forth in section 11 hereof. The terminated Shareholder shall exercise such option by providing 30 day[s’] prior written notice to Sideline of his decision to sell his Stock.
(Emphasis added.) The referenced sections relevant here, sections 8(b) and 8(c), provided for a two-year expiration date and an alternative valuation:
If no review of the Purchase Price is undertaken, the Purchase Price set forth in the prior year(s) shall continue in effect unless a period of 24 months expires from the last time in which the Shareholders and Sideline stipulated a Purchase Price.
If the Purchase Price has not been stipulated within the 24 months prior to a Purchase Event, and a Purchase Event occurs, the Purchase Price shall be the *373fair market value of the Stock as determined by an appraiser selected by Sideline.
¶ 16. Pursuant to the Agreement, Beidel and Hall set the stock price over the years between 2004 and 2007. As the court of appeals explained:
The last stipulated price was agreed to in a document signed by both Hall and Beidel, dated March 6, 2007. It provided for a per-share valuation of $1,600, and thus expired twenty-four months later because Hall and Beidel never agreed on a new valuation.
Beidel, 340 Wis. 2d 433, ¶ 4.
¶ 17. Because there was no new agreed-upon valuation, the price stipulated to on March 6, 2007, was set to expire on March 6, 2009. In October 2008, Hall told Beidel of his intention to terminate Beidel. In December of 2008, the two met to discuss the transitioning of Beidel's duties prior to April of the following year. Following that meeting, the process of transitioning duties seemed to be underway in January of 2009. That month another company interested in purchasing Sideline made an offer to purchase. The offer contained an employment agreement and stock options for Hall, but none for Beidel. On January 20, Beidel submitted written notice to Hall that he was thereby exercising his put option under the Agreement with regard to 2,490 shares of Sideline stock. The notice asserted that he had already been "stripped... of [his] job responsibilities" and his employment had "already been terminated by Sideline." He demanded that Sideline purchase the stock at the stipulated price in accordance with the Agreement.
¶ 18. When Sideline refused, Beidel filed a claim against Sideline for specific performance.17 Sideline *374moved for summary judgment. Sideline claimed that it was entitled to summary judgment because "Beidel was motivated to claim he was constructively discharged in order to increase his buy-out," because "there was no termination of Beidel prior to March 6, 2009," and because "Beidel cannot establish a single element of constructive discharge" to establish that events prior to March 6, 2009, constituted termination. The summary judgment motion described "Hall's right to postpone the termination, in order to avoid the stipulated price," as "a significant contract right that Hall and Sideline had under the Agreement." It acknowledges that Hall "was not motivated to coerce Beidel into resigning in advance of March 2009" and that Hall "was motivated" to keep him employed "until at least after the stipulated price expired." It states that "Hall had specifically represented to Beidel that he would have a job until at least then ...." It also acknowledges that Beidel's duties were documented for the purpose of "transitioning them to others." The motion for summary judgment does not contain any argument concerning the equitable considerations relevant to a claim of specific performance.
¶ 19. The circuit court for Milwaukee County, the Honorable John J. DiMotto presiding, initially granted partial summary judgment to Sideline as follows:
The plaintiff may not proceed on the specific performance claim against Sideline ... by claiming that he was constructively discharged. There is no genuine issue of material fact that one of the essential elements of a claim of constructive discharge, actual resignation by the employee, did not occur in this case. ... The plaintiff will be permitted to proceed to trial on Count No. I, but he will be required to prove that he was actually discharged by Sideline Software Inc., without cause, prior to the expiration of the stipulated price.
*375¶ 20. Following a subsequent hearing, the Honorable William W Brash, III, denied Beidel's motion for reconsideration and dismissed the amended complaint with prejudice as to Sideline, noting that Beidel did not contend that he was actually terminated by Sideline prior to March 7, 2009. A subsequent motion for reconsideration was denied.
¶ 21. As noted above, the circuit court denied summary judgment as to related claims because the court found genuine issues of material fact concerning the good faith dealings of the parties.
¶ 22. The court of appeals reversed the grant of summary judgment; Sideline petitioned for review, and this court granted review.
II. SPECIFIC PERFORMANCE
¶ 23. The question presented by the claim is whether Beidel is entitled to specific performance of the repurchase of his shares at the stipulated price of $1,600 each after Sideline refused to honor Beidel's exercise of his put option under the agreement. We look to our case law on specific performance for the principles that govern a specific performance claim. There we see a series of determinations that a court is obligated to make and the showing a party must make to prevail in such a claim.
¶ 24. The threshold question is whether specific performance is available. In this case, as noted above, the parties agreed in advance that it would be. In the agreement, the parties stipulated that "[i]f a controversy arises concerning the right or obligation to purchase or sell any of the shares of Stock, such right or obligation shall be enforceable in a court of equity by a *376decree of specific performance." We have stated that when a contract specifies remedies available for breach of contract, the intention of the parties generally governs. Ash Park, LLC v. Alexander & Bishop, Ltd., 324 Wis. 2d 703, ¶ 37, 324 Wis. 2d 703, 783 N.W.2d 294 (affirming grant of specific performance). Where there is not such an agreement in advance, "the primary criterion for the availability of specific performance has been the inadequacy of the legal remedy." 219 Corbin on Contracts § 63.1. "[T]he general rule defining the instances where specific performance will be granted may be stated as follows: where damages are an inadequate remedy and the nature of the contract is such that specific enforcement of it will not be impossible or involve too great practical difficulties . . . equity will grant a decree of specific performance." 25 Samuel Williston, A Treatise on the Law of Contracts 67:1 (4th ed. 2002). "Specific performance . . . will not be ordered if damages would be adequate to protect the expectation interest of the injured party." Restatement (Second) of Contracts § 359(1) (1981). See also Negus v. Madison Gas & Elec. Co., 112 Wis. 2d 52, 64, 331 N.W.2d 658, 665 (Ct. App. 1983) (holding that specific performance was unavailable because statute limits plaintiff to particular remedies: "Because Negus must pursue a statutory remedy available to him, the trial court erred in concluding that specific performance was an available remedy. The order granting specific performance therefore must be reversed.").
¶ 25. After the threshold determination is made that specific performance is available, the analysis proceeds with a series of questions.
¶ 26. First, is there a substantial enough breach to warrant specific performance? In a case involving a contract, this necessarily requires the court to interpret *377the terms of the contract. The Restatement (Second) of Contracts describes the relationship of a breach and a claim of specific performance: "[Specific performance] is seldom granted unless there has been a breach of contract, either by non-performance or by repudiation." Restatement (Second) of Contracts § 357 cmt. a (1981).18 In the context of a land contract, Huntoon v. Capozza refined the question further to weigh the significance of the alleged breach. The court focused its analysis on whether there were breaches "substantial enough" to warrant specific performance. Huntoon v. Capozza, 57 Wis. 2d 447, 452, 204 N.W.2d 649 (1973). Huntoon concerned a contract between a seller and buyer of a bar. The seller filed a claim for specific performance seeking the full balance of the purchase price and other costs after the buyer defaulted on the payments following a fire at the property. In addressing the claim, the court differentiated between various claimed breaches on the basis of whether they were "substantial enough to justify equitable relief to the vendors." Id. With respect to one claim, the failure of the buyer to pay an agreed-upon portion of the real estate taxes, the court said, "[W]e are not prepared to state on this record that such breach was material." Id. at 453. The other two claimed breaches, failure to make the monthly payment on time and failure to maintain the establishment's tavern license in good standing, were, the court found, "substantial enough to justify equitable relief to the vendors." Id. at 452. It is apparent from this distinction that absent the "substantial enough" breach, equitable relief is not justified.
*378¶ 27. In determining whether a substantial enough breach occurred, it will be appropriate to consider, as the court of appeals discussed, the covenant of good faith and fair dealing. As this court has observed, "Every contract implies good faith and fair dealing between the parties to it, and a duty of cooperation on the part of both parties." Chayka v. Santini, 47 Wis. 2d 102, 107 n.7, 176 N.W.2d 561 (1970). The Chayka case illustrates the common disfavor for following the letter but not the spirit of an agreement,19 and in that case, it was deemed a violation of the covenant of good faith and fair dealing to do so. What had happened in Chayka has been concisely summarized this way:
In Chayka, a husband and wife contracted to execute joint and reciprocal wills, which, upon one party's death, would leave all property to the other and, upon the survivor's death, would leave all property owned by the survivor to another relative. After the husband's death, the wife remarried and, shortly thereafter, conveyed virtually all of her property to her new husband (or, in some instances, to herself and her husband in joint tenancy). On the wife's death, her estate sought to overturn the conveyances. Resisting the challenge, the second husband argued that the will contract had been fully performed because a will with all of the agreed-upon terms had been executed (and fully performed, in that the wife did leave the property that remained to the relative).20
*379The Chayka court did not accept the second husband's argument that the contract had been complied with, as the "property that remained" had indeed been left to the other relative:
This, as another court has well stated it to be, is "a mere play upon words." What she in fact has done has stripped nearly all of the flesh from the bones, leaving only a skeleton for testamentary disposition to [the relative who was to receive the property]. This is a compliance in form, not in substance, that breaches the covenant of good faith that accompanies every contract, by accomplishing exactly what the agreement of the parties sought to prevent.
Chayka, 47 Wis. 2d at 107.
¶ 28. The court of appeals in Foseid acknowledged what was implicit in Chayka's holding — that "accomplishing exactly what the agreement of the parties sought to prevent" constituted an independent breach even if there was no other technical breach alleged. "[W]e do not consider that reference as a holding that violation of the implied promise of good-faith dealing may not be considered independent of any breach (or lack of breach) of the underlying contract. Indeed, such a holding would run contrary to the supreme court's decision in [Chayka]." Foseid v. State Bank of Cross Plains, 197 Wis. 2d 772, 795, 541 N.W.2d 203 (Ct. App. 1995)(citations omitted).
¶ 29. A party may not, however, employ the good faith and fair dealing covenant to undo express terms of an agreement. Reliance on the covenant of good faith and fair dealing did not avail a franchisee who complained that "even if [the franchisor's] conduct comported with the terms of the agreement," the covenant required that the franchisor "not franchise a second *380store in [the franchisee's] market area." Super Valu Stores, Inc. v. D-Mart Food Stores, Inc., 146 Wis. 2d 568, 577, 431 N.W.2d 721 (Ct. App. 1988). In Super Valu Stores, the franchise agreement "specifically authorized" the franchisor to act in a manner which could harm the franchisee. The franchise agreement explicitly stated that the franchise was non-exclusive and the franchisor had the "sole choice and discretion" as to whether to enter another franchise agreement in the same community or any other. Id. at 572. As the court of appeals said in that case,
[W]here, as here, a contracting party complains of acts of the other party which are specifically authorized in their agreement, we do not see how there can be any breach of the covenant of good faith. Indeed, it would be a contradiction in terms to characterize an act contemplated by the plain language of the parties' contract as a "bad faith" breach of that contract.
Id. at 577. Unlike in Chayka, in Super Valu Stores there was compliance with both the form and substance of the contract.
¶ 30. Having determined that specific performance is available and warranted by a substantial enough breach by a party, the court arrives at the heart of the matter — the "balancing of the equities" in which it takes into consideration all the facts and circumstances and determines whether the plaintiff is entitled to the equitable relief he seeks. "The fairness of ordering specific performance depends on the facts and equities of the individual case before the circuit court and will vary from case to case." Ash Park, 324 Wis. 2d 703, ¶ 38. This balancing has been described as "a judicial discretion":
*381But this discretion is not one to be exercised at the mere will and pleasure of the judge. It must be a judicial discretion, controlled and governed by the principles and rules of equity. Its exercise therefore depends upon the existence of a multitude of facts, events, and incidents surrounding the transaction ....
Mulligan v. Albertz, 103 Wis. 140, 144, 78 N.W. 1093 (1899). "Accordingly, specific performance will be granted when it is apparent from a view of all the circumstances of the particular case that it will serve the ends of justice." 81A C.J.S. Specific Performance § 4 (2004). Indeed, as one treatise has stated, "[I]n determining the question [of whether to grant or refuse a decree of specific performance], a greater variety of facts is to be taken into consideration than is the case in an action for damages for breach of contract." 12 Joseph M. Perillo, Corbin on Contracts § 63.1 (rev. ed. 2012).
¶ 31. As a part of its equitable balancing, the court must consider countervailing concerns: Are there any factual considerations that would make specific performance unfair, unreasonable, impossible, oppressive, harsh or unjust? See Gaugert v. Duve, 2001WT 83, ¶ 47, 244 Wis. 2d 691, 628 N.W.2d 861 (stating, "The circuit court's analysis did not reveal any factual considerations that would make specific performance unfair, unreasonable, or impossible." (citing Anderson v. Onsager, 155 Wis. 2d 504 at 512-13, 455 N.W.2d 885 (1990))). This determination has been phrased in various ways: "The court will not grant the relief unless satisfied that the claim is fair and the contract equal and founded on consideration, that it is not opposed to public policy, that the plaintiff is guilty of no inequitable conduct or of delay constituting laches, and that the result will not be oppressive, harsh or unjust." 9 Jay Grenig, Wisconsin Pleading and Practice § 81:2 (5th ed. 2012) (citing cases).
*382¶ 32. Consistent with the latitude the circuit court has to consider many factors is the latitude the circuit court has to fashion a remedy. Wisconsin cases have recognized that once a court has determined that equitable relief is appropriate, it has wide latitude to fashion the remedy based on the equities of the case. "This being an action for specific performance the circuit court sits as a court of equity and should be able to fashion relief which will be equitable to both plaintiffs and defendants." Venisek v. Draski, 35 Wis. 2d 38, 51, 150 N.W.2d 347 (1967). See also Town of Fond du Lac v. City of Fond du Lac, 22 Wis. 2d 525, 531-32, 126 N.W.2d 206 (1964) ("A court of equity has inherent power to fashion a remedy to the particular facts. Continued failure to do so would render equity. . . sterile and... arbitrary in its relief. . . ."); Am. Med. Servs., Inc. v. Mut. Fed. Sav. & Loan Ass'n, 52 Wis. 2d 198, 205, 188 N.W.2d 529 (1971) ("The court of equity has always had a traditional power to adapt its remedies to the exigencies and the needs of the case; that was one of the great virtues and reasons for the existence of courts of equity."); Ash Park, 324 Wis. 2d 703, ¶ 73 ("[T]he court of equity has the power of devising its remedy and shaping it so as to fit the changing circumstances of every case and the complex relations of all the parties." (quoting 1 John Norton Pomeroy, A Treatise on Equity Jurisprudence § 109 (5th ed. 1941)).
¶ 33. Finally, we note that this case arises in the posture of a summary judgment motion. We review a summary decision de novo, applying the same methodology as the circuit court. Green Spring Farms v. Kersten, 136 Wis. 2d 304, 315, 401 N.W.2d 816 (1987). "Under [Wis. Stat. § 802.08], summary judgment must *383be entered 'if the pleadings, depositions, answers to interrogatories, and admissions on file, together with the affidavits, if any, show that there is no genuine issue as to any material fact and that the moving party is entitled to a judgment as a matter of law.'" Swatek v. County of Dane, 192 Wis. 2d 47, 61, 531 N.W.2d 45 (1995). The methodology is straightforward — evaluate the claim first, then see if the moving party has presented a prima facie case for summary judgment, and if so, examine the opposing party's proof:
Our first step is to discern whether the pleadings set forth a claim for relief as well as a material issue of fact. If the pleadings meet this initial test, our inquiry shifts to the moving party's affidavits or other proof to determine whether a prima facie case for summary judgment has been presented. If the moving party has made a prima facie case for summary judgment, we then examine the affidavits and other proof of the opposing party to discern whether there exist disputed material facts, or undisputed material facts from which reasonable alternative inferences may be drawn, sufficient to entitle the opposing party to a trial.
Id. at 61-62.
III. DISCUSSION
¶ 34. Having set out the analytical framework that applies to a specific performance case, we now turn to the task of applying it to the case at hand. We apply the methodology as described by Swatek. There is no dispute, as to the initial question, that the pleadings set forth a claim for relief, specifically for equitable relief, pursuant to a contractual provision, as well as a mate*384rial issue of fact. The amended complaint alleges that Sideline failed to pay the stipulated price after Beidel exercised his put option.
¶ 35. The next question is whether the moving party, in this case Sideline, has made a prima facie case for summary judgment. "To make a prima facie case for summary judgment, a moving defendant must show a defense which would defeat the plaintiff." Grams v. Boss, 97 Wis. 2d 332, 338, 294 N.W.2d 473 (1980), overruled on other grounds by Meyers v. Bayer AG, Bayer Corp., 2007 WI 99, 303 Wis. 2d 295, 735 N.W.2d 448.
¶ 36. In order to prevail on his equitable claim, as we have set forth above, Beidel would have to show that that specific performance is available to him as a remedy,21 that there was a substantial enough breach to warrant specific performance, that the equities lie on his side, and that nothing would make an order of specific performance unfair, unreasonable or impossible. In order to make a prima facie case for summary judgment, Sideline must therefore show "a defense which would defeat the plaintiff." Grams, 97 Wis. 2d at 338. In the context of a specific performance claim, the motion for summary judgment must address the specific requirements the case law sets forth for such a claim.
*385A. The Summary Judgment Motion
¶ 37. An examination of Sideline's summary judgment motion shows that while it has shown a defense which would defeat a constructive termination argument in a wrongful termination claim, it has not shown a defense which would defeat the claim Beidel actually brought. Not only does the summary judgment motion fail to address the equitable claim directly, it attempts to support its position with facts and arguments that could be construed to support Beidel's position on the equitable claim (e.g., Sideline claims that it had a "right to postpone the termination, in order to avoid the stipulated price," that Hall "was not motivated to coerce Beidel into resigning in advance of March 2009," and that Hall "was motivated" to keep him employed "until at least after the stipulated price expired"). None of these assertions are inconsistent with Beidel's theory that Sideline unfairly refused to purchase his shares at the stipulated price after delaying his termination for that express purpose. Because the summary judgment motion does not show a defense that would defeat the equitable claim, it does not make a prima facie case. The analysis ends there, and the motion fails.
¶ 38. We turn next to the two legal concepts that are likely to arise again when the case is remanded: the doctrine of constructive termination and the covenant of good faith and fair dealing. We examine each of the issues in order to acknowledge and respond to the parties' arguments.
B. Constructive Termination
¶ 39. As noted above, Beidel was formally terminated by the board of Sideline in September 2009. He has asserted that he was, in reality, terminated long *386before that. The significance of the timing is that if the termination took place while the stipulated price was still in effect, Beidel's shares are worth $1,600 each. If the termination took place after the expiration of the stipulated price, his shares are worth many times less.
¶ 40. The constructive discharge doctrine "recognizes that some resignations are coerced, tantamount to a termination." Strozinsky v. Sch. Dist. of Brown Deer, 2000 WI 97, ¶ 68, 237 Wis. 2d 19, 614 N.W.2d 443. We addressed this scenario in Strozinsky and described the purpose of the doctrine this way:
Actual discharge carries significant legal consequences for employers, including possible liability for wrongful discharge. In an attempt to avoid liability, an employer may refrain from actually firing an employee, preferring instead to engage in conduct causing him or her to quit. The doctrine of constructive discharge addresses such employer-attempted 'end runs' around wrongful discharge and other claims requiring employer-initiated terminations of employment.
Strozinsky, 237 Wis. 2d 19, ¶ 68.
¶ 41. The court stated that the significance of the holding was that "employers cannot escape liability by coercing a resignation instead of formally uttering the words 'you're fired.'" Id., ¶ 83. It then stated what a plaintiff seeking to establish that a resignation was coerced must show: "The plaintiff must prevail under an objective standard, establishing that conditions were so intolerable that a reasonable person confronted with same circumstances would have been compelled to resign." Id.
¶ 42. Beidel asserts that the situation here is governed by the principle underlying the constructive discharge doctrine — that substance is more important *387than form. Essentially, he seeks, at least in the context of an equitable claim, an interpretation of the constructive discharge test under which the meaning of being "substantially terminated" would encompass situations where an employer does not formally terminate an employee, and the employee does not resign. He has not, however, brought to our attention any cases in which a court found constructive termination had occurred where the employee had not resigned. Sideline agrees that the doctrine is key in this case; indeed, it asserts that the dispositive question in this case is whether Beidel can show that he was constructively discharged prior to the expiration of the stipulated price of the shares. Sideline argues that Beidel concedes that his formal termination happened later, and he cannot show that he resigned, as required by the Strozinsky elements. Sideline asserts that those facts are fatal to his claim that the put option was triggered before the stipulated price expired.
¶ 43. We disagree in key respects with both approaches. Beidel is wrong because he thinks in an equitable case, the test for constructive discharge can be applied in a less formalistic way such that constructive discharge can be found to occur even where there is not a resignation by an employee. Even though the rationale underlying the constructive discharge doctrine is, as Beidel points out, one of making sure that "substance prevails over form," courts have established the test for a constructive termination, and every Wisconsin case we have found that meets that test involves a resignation. See Strozinsky, 237 Wis. 2d 19, ¶ 68. The fact that the test was developed in order to help courts do justice does not mean that it is to be applied without regard to the required elements. We see no need to alter the Strozinsky approach to testing *388constructive discharge claims. We recognize that this case is unusual in that it involves an employee who is also a shareholder and director, who is arguably compelled by his own self-interest to help keep the company functioning and profitable and therefore prevented from resigning as might an employee without those additional roles. We do not think it wise to alter an established and workable test to fit the unusual situation presented here.
¶ 44. However, we cannot agree that this conclusion — that the constructive termination test is not satisfied — disposes of Beidel's equitable claim. Sideline argues that specific performance of the contract is precluded because the constructive termination elements cannot be shown. But that argument is based on a fundamental misapprehension of the claim for specific performance: Beidel was not pursuing a claim for wrongful termination and does not allege that the termination of his employment, whenever it happened, violated any contract. As the court of appeals held, the analysis does not end with the disposal of the constructive termination claim. Further, it is unhelpful and unnecessary to graft the constructive termination requirements onto the equitable analysis. On that point, we agree with Beidel that "[t]he court's discretion in deciding whether to grant specific performance should not be limited by a test imported from an entirely different legal theory implicating entirely different concerns."
¶ 45. There is one further, related consideration, given that Beidel's claim turns on the timing of the ending of his employment with Sideline. The foundation for Beidel's specific performance claim is that his treatment by Sideline triggered his right to exercise his *389put option prior to the expiration of the stipulated share price. The contract, in section 6, "Termination of Employment Without Cause; Shareholder's Put Option," cross-references section 7(b) for the definition of "Cause":
"Cause" means (i) the commission of a felony or a crime involving moral turpitude or the commission of any other act or omission involving dishonesty, disloyalty or fraud with respect to Sideline, (ii) failure to devote his entire business time to the business of Sideline (subject to normal vacation leave or time off, illness or sick leave, or other periods of permitted absence), (iii) conduct tending to bring Sideline into substantial public disgrace or disrepute, (iv) gross negligence or willful misconduct with respect to Sideline, or (v) any material breach of this Agreement.
However, we observe that the contract does not define "termination."22 In the course of weighing the equities in a specific performance claim based on a contract, a court needs to of course consider the terms of the contract, and whether "termination" is ambiguous, and if so, what the parties intended the term to mean.23 All *390of this is appropriate to consider when the circuit court weighs the equities involved.
C. Covenant of Good Faith and Fair Dealing
¶ 46. The parties also dispute the application of the covenant of good faith and fair dealing in the context of a specific performance claim, especially one that involves an employee's termination. We set out above the basic principles that Wisconsin cases have discussed: that every contract implies good faith and fair dealing between the parties to it, and a duty of cooperation on the part of both parties; that a violation of the implied promise of good-faith dealing may be considered independent of any breach of the underlying contract; and that the covenant cannot be used to turn what was specifically authorized in the agreement into a breach.24
¶ 47. Sideline makes several arguments related to this topic. It argues that Beidel waived the opportunity to have this doctrine discussed in connection with his claim, and it appears to take the position that it is not appropriate or permitted for the court to consider the application of the covenant of good faith and fair dealing unless Beidel "pled a second cause of action that *391is independent and severable from the claim for breach of contract based upon constructive discharge."25 Sideline also argues that there is no application of the covenant of good faith and fair dealing because the covenant is employed as a "gap-filler," to be applied to circumstances that are not contemplated by the language of the parties' contract. In this case, Sideline asserts, the contract has no gaps to fill because the Stock Repurchase Agreement contemplated that Sideline "might [choose] to make the termination effective after the stipulated price expired because of changes in market conditions or other uncertainties impacting the accuracy of the stipulated price." Finally, it asserts that to the extent that the covenant of good faith and fair dealing comes into play here, it was Beidel who breached the duty of good faith by seeking to obtain a premium for his shares to which he was not entitled under the terms of the contract. Beidel argues that the covenant of good faith and fair dealing is applicable in the analysis of an equitable claim and asserts that because it is a part of all contracts, there has been no waiver of its application here.
¶ 48. Sideline's waiver argument is not persuasive. It would be absurd to remand for the balancing of the equities where a party seeks specific performance and to do so on the condition that the circuit court ignore breaches of good faith and fair dealing by the parties. While the covenant of good faith and fair dealing is implicit in all contracts and thus relevant to *392all types of contract claims, it is most relevant in an equitable case, which by its nature deals with the ideal of fairness. There is no requirement that a claim be pled as a breach of the covenant of good faith and fair dealing in order for the doctrine to play a part in the analysis of the case. As discussed above at paragraph 29, the situation in Super Valu Stores was one in which the franchisee countersued the franchisor on the grounds that the franchisor's decision to grant another franchise in the same city violated the duty of good faith and fair dealing "even if [the franchisor's] conduct comported with the terms of the agreement." Super Valu Stores, 146 Wis. 2d at 577. In that case, the contract explicitly permitted the franchisor to act to the detriment of the franchisee: The franchise agreement explicitly stated that the franchise was non-exclusive and gave the franchisor "the right... to enter into . . . Retailer Agreements with other parties at [its] sole choice and discretion." Id. at 572. Entering into retailer agreements with other parties, therefore, did not constitute a lack of good faith and fair dealing because the franchisee had consented to it in the contract. Whether Sideline's alleged action was "contemplated by the plain language of the parties' contract," as the franchisor's right in Super Valu Stores was, will be a matter for the circuit court to decide. Sideline's and Beidel's remaining arguments about the application of good faith and fair dealing may also be appropriately directed to the circuit court on remand.26
*393IV CONCLUSION
¶ 49. We reiterate that the case law on specific performance is abundantly clear that the equities must be weighed. It is clear from a review of the record that such a balancing has never happened in this case. The motion for summary judgment failed to make a prima facie case that Sideline was entitled to specific performance because it did not show a defense that would defeat the equitable claim it opposed.
¶ 50. We therefore agree with the court of appeals that summary judgment was improperly granted in this case without the required balancing of the equities that are due to a specific performance claim and without a consideration of the possibility of a breach of the covenant of good faith and fair dealing. In order to make a prima facie case that Sideline was entitled to summary judgment, its motion would need to show a defense that would defeat Beidel's claim. That is, it must successfully attack the requirements for obtaining specific performance:
- that specific performance is available as a remedy;
- that there has been a substantial enough breach to warrant specific performance; and
- that the equities lie on his side, and that nothing would make an order of specific performance unfair, unreasonable or impossible.
*394In determining whether the requirements for specific performance have been met in this case, it will be necessary for the court to interpret and apply the provisions of the Stock Repurchase Agreement, with special reference to Section 6, Termination of Employment without Cause, as well as Sections 8(b) and (c), which relate to valuation. In this case the analysis necessarily involves interpreting the contract and determining whether the undefined term "termination" is ambiguous, and if so, what the parties intended the term to mean. Extrinsic evidence may be needed in order to make the determination of the parties' intent.
¶ 51. Sideline's motion for summary judgment does not set forth such a defense, and therefore fails to make a prima facie case. Accordingly, we affirm the court of appeals and remand for "the circuit court's determination where the bulk of the equities lie, including an evaluation of what the parties intended when they agreed to the stock re-purchase agreement, and whether it should grant specific performance as Beidel requested." Beidel, 340 Wis. 2d 433, ¶ 16. A circuit court may grant summary judgment to a party on remand as warranted after the equities have been balanced, recognizing the implications of the nature of a claim for specific performance and the well-established obligation of good faith and fair dealing.
By the Court. — The decision of the Court of Appeals is affirmed.
DAVID T. PROSSER, J., did not participate.