Skip to content

Instantly share code, notes, and snippets.

@frootloops
Created August 6, 2021 09:09
Show Gist options
  • Save frootloops/6279f31ec186bb4cd511f0dc992a048d to your computer and use it in GitHub Desktop.
Save frootloops/6279f31ec186bb4cd511f0dc992a048d to your computer and use it in GitHub Desktop.
private class Builder {
var priceAlertApiService = PriceAlertApiServiceMock()
var priceAlertStorageService = PriceAlertStorageServiceMock()
func makeRepository() -> PriceAlertRepository {
let repository = PriceAlertRepository(
network: priceAlertApiService,
storage: priceAlertStorageService
)
return repository
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment