Created
July 24, 2021 10:03
-
-
Save vikage/5479eb54d374df2f197738720b06d979 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// @Generated by Mockolo | |
/// | |
import Foundation | |
public class ProjectDaoMock: ProjectDao { | |
public init() { } | |
public private(set) var addProjectCallCount = 0 | |
public var addProjectHandler: ((Project) -> ())? | |
public func addProject(_ project: Project) { | |
addProjectCallCount += 1 | |
if let addProjectHandler = addProjectHandler { | |
addProjectHandler(project) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment