 
     func loadHomepage(delegate: HomepageServiceLoadingDelegate) {
         self.delegate = delegate
-        service.loadHomepage(delegate: self)
         delegate.homepageServiceDidFailToLoad()
         delegate.homepageServiceDidLoadSuccessfully(content: [])
+        service.loadHomepage(delegate: self)
     }
 
-    func finishedLoadingHomepage() {
-
+    func finishedLoadingHomepage(items: [HomepageItem]) {
+        delegate?.homepageServiceDidLoadSuccessfully(content: items)
     }
 
     func failedToLoadHomepage() {

        XCTAssertTrue(delegate.didFinishLoadingInvoked)
    }

}


protocol HomepageLoadingDelegate {

    func finishedLoadingHomepage(items: [HomepageItem])
    func failedToLoadHomepage()

}
