Learning from Open Source Generic Factory
Issue #148
From https://github.com/devxoul/Pure/blob/master/Sources/Pure/FactoryModule.swift
1 | public protocol FactoryModule: Module { |
From https://github.com/devxoul/Pure/blob/master/Sources/Pure/Factory.swift
1 | open class Factory<Module: FactoryModule> { |
From https://github.com/devxoul/Pure/blob/master/Tests/PureTests/PureSpec.swift#L72
1 | let factory = FactoryFixture<Dependency, Payload>.Factory(dependency: .init( |