         self.networkAdapter = networkAdapter
     }
 
-    func loadHomepage() {
+    func loadHomepage(completionHandler: (InkbunnyHomepageLoadResult) -> Void) {
         let loginURL = URL(string: "https://inkbunny.net/api_login.php")!
         networkAdapter.get(loginURL) { _, _ in }
+        completionHandler(.failure)
+    }
+
+}
+
+class CapturingInkbunnyHomepageHandler {
+
+    private(set) var wasNotifiedFeedDidFailToLoad = false
+    func verify(_ result: InkbunnyHomepageLoadResult) {
+        switch result {
+        case .failure:
+            wasNotifiedFeedDidFailToLoad = true
+        }
     }
 
 }

        let expectedLoginURL = URL(string: "https://inkbunny.net/api_login.php")!
        let capturingNetworkAdapter = CapturingNetworkAdapter()
        let inkbunnyAPI = InkbunnyAPI(networkAdapter: capturingNetworkAdapter)
        inkbunnyAPI.loadHomepage()

        XCTAssertEqual(expectedLoginURL, capturingNetworkAdapter.requestedURL)
    }

}

@testable import Peekazoo
import XCTest

enum InkbunnyHomepageLoadResult {
    case failure
}

struct InkbunnyAPI {

    var networkAdapter: NetworkAdapter
