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; }
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; }