//
//  URLSessionProtocol.swift
//  skyscanner-viper
//
//  Created by Ivan Tchernev on 26/03/2018.
//  Copyright © 2018 AND Digital. All rights reserved.
//

//import Foundation
//protocol URLSessionProtocol {
//    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
//
//}
//
//extension URLSession: URLSessionProtocol {
//    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
//        let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
//        return task as URLSessionDataTaskProtocol
//    }
//}
