public AppointmentDAO(IDataAccessObjectsFactory daoFactory, IDomainObjectsFactory domainObjectsFactory) : base(daoFactory) { if (domainObjectsFactory == null) { throw new ArgumentNullException(nameof(domainObjectsFactory)); } _DomainObjectsFactory = domainObjectsFactory; }
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; }