Question About NerdDinner Controller Constructors
- by Gavin Draper
I've been looking at the Nerd Dinner app, more specifically how it handles its unit tests.
The following constructors for the RSVPController are confusing my slightly
public RSVPController()
: this(new DinnerRepository()) {
}
public RSVPController(IDinnerRepository repository) {
dinnerRepository = repository;
}
From what I can tell the…