 // swiftlint:disable file_length
 // swiftlint:disable type_body_length
 // swiftlint:disable function_body_length
+import Prelude
 import ReactiveSwift
-import Prelude
+import Result
 
 internal struct MockService: ServiceType {
   internal let appId: String

          oauthToken: $0,
          language: $1.language,
          buildVersion: $1.buildVersion,
          changePaymentMethodResponse: $1.changePaymentMethodResponse,
          createPledgeResponse: $1.createPledgeResponse,
          facebookConnectResponse: $1.facebookConnectResponse,
          facebookConnectError: $1.facebookConnectError,
          fetchActivitiesResponse: $1.fetchActivitiesResponse,

    shippingLocation: Location?,
    tappedReward: Bool) -> SignalProducer<UpdatePledgeEnvelope, ErrorEnvelope> {

    if let error = self.updatePledgeResult?.error {
      return SignalProducer(error: error)
    }

    return SignalProducer(value: self.updatePledgeResult?.value ?? .template)
  }

  internal func addImage(file fileURL: URL, toDraft draft: UpdateDraft)
