public ResidentDataProvider(string connectionString, IResidentContactDataProvider residentContactDataProvider, ISocialWorkerDataProvider socialWorkerDataProvider) { _connectionString = connectionString ?? throw new ArgumentNullException(nameof(connectionString)); _residentContactDataProvider = residentContactDataProvider ?? throw new ArgumentNullException(nameof(residentContactDataProvider)); _socialWorkerDataProvider = socialWorkerDataProvider ?? throw new ArgumentNullException(nameof(socialWorkerDataProvider)); }
public ResidentService(IResidentDataProvider residentDataProvider, IResidentContactDataProvider residentContactDataProvider, ISocialWorkerDataProvider socialWorkerDataProvider) { _residentDataProvider = residentDataProvider ?? throw new ArgumentNullException(nameof(residentDataProvider)); _residentContactDataProvider = residentContactDataProvider ?? throw new ArgumentNullException(nameof(residentContactDataProvider)); _socialWorkerDataProvider = socialWorkerDataProvider ?? throw new ArgumentNullException(nameof(socialWorkerDataProvider)); }