コード例 #1
0
ファイル: AppointmentDAO.cs プロジェクト: fabricekfr/Traca
 public AppointmentDAO(IDataAccessObjectsFactory daoFactory, IDomainObjectsFactory domainObjectsFactory)
     : base(daoFactory)
 {
     if (domainObjectsFactory == null)
     {
         throw new ArgumentNullException(nameof(domainObjectsFactory));
     }
     _DomainObjectsFactory = domainObjectsFactory;
 }
コード例 #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;
        }