Example #1
0
 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));
 }
Example #2
0
 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));
 }