public void SetUp()
 {
     _directoryPathValidator = A.Fake <IDirectoryHelper>();
     _notifier                             = A.Fake <INotifier>();
     _pathHelper                           = A.Fake <IPathHelper>();
     _directoryMonitor                     = A.Fake <IDirectoryMonitor>();
     _peopleCache                          = A.Fake <IPeopleCache>();
     _peopleAverageAgeEvaluator            = A.Fake <IPeopleAverageAgeEvaluator>();
     _averagePeopleAgePerCountrySerializer = A.Fake <ISerializer <AveragePeopleAgePerCountry> >();
     _fileHelper                           = A.Fake <IFileHelper>();
     _objectUnderTest                      = new AgeAggregatorService(_directoryPathValidator, _notifier, _pathHelper, _directoryMonitor, _peopleCache, _peopleAverageAgeEvaluator, _averagePeopleAgePerCountrySerializer, _fileHelper);
 }
 public AgeAggregatorService(IDirectoryHelper directoryPathValidator,
                             INotifier notifier,
                             IPathHelper pathHelper,
                             IDirectoryMonitor directoryMonitor,
                             IPeopleCache peopleCache,
                             IPeopleAverageAgeEvaluator peopleAverageAgeEvaluator,
                             ISerializer <AveragePeopleAgePerCountry> averagePeopleAgePerCountrySerializer,
                             IFileHelper fileHelper)
 {
     _directoryPathValidator = directoryPathValidator;
     _notifier                             = notifier;
     _pathHelper                           = pathHelper;
     _directoryMonitor                     = directoryMonitor;
     _peopleCache                          = peopleCache;
     _peopleAverageAgeEvaluator            = peopleAverageAgeEvaluator;
     _averagePeopleAgePerCountrySerializer = averagePeopleAgePerCountrySerializer;
     _fileHelper                           = fileHelper;
 }