コード例 #1
0
        public RegistrationService(IRegistrationNotifier notifier, IRepository<Client> clientRepository)
        {
            if (notifier == null)
                throw new ArgumentNullException("notifier", "notifier cannot be null");

            if (clientRepository == null)
                throw new ArgumentNullException("clientRepository", "clientRepository cannot be null");

            _notifier = notifier;
            _clientRepository = clientRepository;
        }
コード例 #2
0
 public PatientRegistrationService(IPatientAccountService patientAccountService, IRegistrationNotifier registrationNotifier)
 {
     this.patientAccountService = patientAccountService;
     this.registrationNotifier  = registrationNotifier;
 }