JSONFixtureDefinition
public class JSONFixtureDefinition<Model> : JSONFixtureMaker where Model : FixtureFactoryable
It defines a fixture to generate the model and the associated JSON.
-
Declaration
Swift
public func make(_ number: Int) -> [Model] -
Declaration
Swift
public func makeJSON(_ number: Int) -> [[String : Any]] -
Declaration
Swift
public func makeJSON<S>(from objects: S) -> [[String : Any]] where Model == S.Element, S : Sequence -
Declaration
Swift
public func makeWithJSON(_ number: Int) -> [(object: Model, JSON: [String : Any])]
View on GitHub
Install in Dash
JSONFixtureDefinition Class Reference