Skip to content

Instantly share code, notes, and snippets.

@vikage
Created July 24, 2021 10:03
Show Gist options
  • Save vikage/5479eb54d374df2f197738720b06d979 to your computer and use it in GitHub Desktop.
Save vikage/5479eb54d374df2f197738720b06d979 to your computer and use it in GitHub Desktop.
///
/// @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