public SettingsCheckerWithRetry( IAppSettings settings, IMessagesService messageService, IUserInteractionsService userInteractionService) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); _messageService = messageService ?? throw new ArgumentNullException(nameof(messageService)); _userInteractionService = userInteractionService ?? throw new ArgumentNullException(nameof(userInteractionService)); }
public CocktailsController(ICocktailsService service, ICocktailViewMapper mapper, IIngredientsService ingredientsService, IUserInteractionsService userInteractionsService, IBarViewMapper barMapper) { _service = service ?? throw new ArgumentNullException(nameof(service)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _ingredientsService = ingredientsService ?? throw new ArgumentNullException(nameof(ingredientsService)); _userInteractionsService = userInteractionsService ?? throw new ArgumentNullException(nameof(userInteractionsService)); _barMapper = barMapper ?? throw new ArgumentNullException(nameof(_barMapper)); }