コード例 #1
0
 public DoctorController(IUserDAO _userDAO, IOfficeDAO _officeDAO, IAddressDAO _addressDAO, IOfficeAddressDAO _officeAddressDAO, IDoctorDAO _doctorDAO, IAppointmentDAO _appointmentDAO, IReviewDAO _reviewDAO)
 {
     userDAO          = _userDAO;
     officeDAO        = _officeDAO;
     addressDAO       = _addressDAO;
     officeAddressDAO = _officeAddressDAO;
     doctorDAO        = _doctorDAO;
     appointmentDAO   = _appointmentDAO;
     reviewDAO        = _reviewDAO;
 }
コード例 #2
0
        public BookingApplicationService(ICenterDAO centerDAO, IAppointmentDAO appointmentDAO, IDomainObjectsFactory domainObjectsFactory)
        {
            if (centerDAO == null)
            {
                throw new ArgumentNullException(nameof(centerDAO));
            }
            if (appointmentDAO == null)
            {
                throw new ArgumentNullException(nameof(appointmentDAO));
            }
            if (domainObjectsFactory == null)
            {
                throw new ArgumentNullException(nameof(domainObjectsFactory));
            }

            _CenterDAO            = centerDAO;
            _AppointmentDAO       = appointmentDAO;
            _DomainObjectsFactory = domainObjectsFactory;
        }