dddeastanglia / DDDEastAnglia

DDD East Anglia website
https://www.dddeastanglia.com
7 stars 10 forks source link

Fix #289 Use the correct number of sessions for the conference #299

Closed adrianbanks closed 10 years ago

adrianbanks commented 10 years ago

This change adds the total number of time slots and the total number of tracks to the database, and uses those values in the voting pages to visualise the data with the correct number of total sessions.

After this is merged, the number of time slots and tracks will both be set to 5 in the database.

adrianbanks commented 10 years ago

AutoFixture would be (y)our friend here more than builders, IMO.

Not sure how you mean. The VotingControllerBuilder is used to create the SUT where it is used, and so can't be made with AutoFixture.

The other builders are used to provide canned answers, so I need to know what those answers are - unless there is a way with AutoFixture to do that (but wouldn't that defeat the purpose of using it in the first place)?

alastairs commented 10 years ago

So AutoFixture can act as a SUT Factory and provide instances (optionally mocked) of the SUT's dependencies, so we wouldn't need VotingControllerBuilder. As far as the canned answers are concerned... perhaps you would still need builders for those. I have mock support on the list for Bob; fancy spiking it? :wink:

alastairs commented 10 years ago

:+1: Needs manual merge