Пример #1
0
 public FizzBuzzController(
     IFizzBuzzGenerator fizzBuzzGenerator,
     ISettingsStore settingsStore,
     IPager pager,
     IUserInputLogger userInputLogger)
 {
     _fizzBuzzGenerator = fizzBuzzGenerator ?? throw new ArgumentNullException(nameof(fizzBuzzGenerator));
     _settingsStore     = settingsStore ?? throw new ArgumentNullException(nameof(settingsStore));
     _pager             = pager ?? throw new ArgumentNullException(nameof(pager));
     _userInputLogger   = userInputLogger ?? throw new ArgumentNullException(nameof(userInputLogger));
 }
Пример #2
0
 public void Initialize()
 {
     _generator = new NoridianGenerator(1, 10);
 }