public MessageContextFactory(SynonymService synonymService) { if (synonymService == null) { throw new ArgumentNullException(nameof(synonymService)); } _synonymService = synonymService; }
public MessageContextFactory(SynonymService synonymService, IController controller) { if (synonymService == null) { throw new ArgumentNullException(nameof(synonymService)); } if (controller == null) { throw new ArgumentNullException(nameof(controller)); } _synonymService = synonymService; _controller = controller; }
public PersonalAgentService( SynonymService synonymService, IComponentService componentService, IAreaService areaService, IWeatherService weatherService, IOutdoorTemperatureService outdoorTemperatureService, IOutdoorHumidityService outdoorHumidityService) { if (synonymService == null) { throw new ArgumentNullException(nameof(synonymService)); } if (componentService == null) { throw new ArgumentNullException(nameof(componentService)); } if (areaService == null) { throw new ArgumentNullException(nameof(areaService)); } if (weatherService == null) { throw new ArgumentNullException(nameof(weatherService)); } if (outdoorTemperatureService == null) { throw new ArgumentNullException(nameof(outdoorTemperatureService)); } if (outdoorHumidityService == null) { throw new ArgumentNullException(nameof(outdoorHumidityService)); } _synonymService = synonymService; _componentService = componentService; _areaService = areaService; _weatherService = weatherService; _outdoorTemperatureService = outdoorTemperatureService; _outdoorHumidityService = outdoorHumidityService; }