Given a fixture defined like so:
FooFixture = factory ->
id: 13
foo: 'bar'
the factory may be used to retrieve the raw fixture:
attributes = FooFixture()
model = new MyModel(attributes)
or to pass the fixture as a constructor argument:
model = new FooFixture(MyModel) # equivalent to above
attributes = FooFixture(id: 42)
model = new MyModel(attributes)
model = new FooFixture(MyModel, id: 42) # override ID