Files
Yuriy.Shikin aa8058c551 Feature/tests
2022-02-17 09:47:08 +00:00

21 lines
453 B
Swift

//
// NetworkEnvironment.swift
// Cyberlock
//
// Created by Jura on 8/21/19.
// Copyright © 2019 Omicronmedia. All rights reserved.
//
import Foundation
public protocol NetworkEnvironment {
var host: String { get }
var stub: StubBehavior? { get }
func sampleData(for service: ServiceType) -> Data?
}
extension NetworkEnvironment {
var stub: StubBehavior? { nil }
func sampleData(for service: ServiceType) -> Data? { nil }
}