Beispiel #1
0
        public SubscriptionFactory(IRepository da, IGateService gateService, IService serviceCharge, IImageManager passportManager, IPersonEditorService personEditorService, IPaymentService paymentService)
        {
            if (da == null)
            {
                throw new ArgumentNullException("da");
            }
            if (passportManager == null)
            {
                throw new ArgumentNullException("passportManager");
            }
            if (gateService == null)
            {
                throw new ArgumentNullException("gateService");
            }
            if (personEditorService == null)
            {
                throw new ArgumentNullException("personEditorService");
            }
            if (paymentService == null)
            {
                throw new ArgumentNullException("paymentService");
            }
            if (serviceCharge == null)
            {
                throw new ArgumentNullException("serviceCharge");
            }

            _da                  = da;
            _gateService         = gateService;
            _paymentService      = paymentService;
            _passportManager     = passportManager;
            _personEditorService = personEditorService;
            _serviceCharge       = serviceCharge;
        }
Beispiel #2
0
        public RegistrationFactory(IRepository da, IGateService gateService, IService serviceCharge, IPaymentService paymentService, IPersonEditorService personEditorService)
        {
            if (da == null)
            {
                throw new ArgumentNullException("da");
            }
            if (gateService == null)
            {
                throw new ArgumentNullException("gateService");
            }
            if (paymentService == null)
            {
                throw new ArgumentNullException("paymentService");
            }
            if (personEditorService == null)
            {
                throw new ArgumentNullException("personEditorService");
            }
            if (serviceCharge == null)
            {
                throw new ArgumentNullException("serviceCharge");
            }

            _da                  = da;
            _gateService         = gateService;
            _paymentService      = paymentService;
            _personEditorService = personEditorService;
            _serviceCharge       = serviceCharge;
        }
        public TeacherSubscriptionEditorService(IRepository da, IImageManager passportManager, IPersonEditorService personEditorService, IPaymentService paymentService) : base(da, passportManager, paymentService)
        {
            if (personEditorService == null)
            {
                throw new ArgumentNullException("personEditorService");
            }

            _personEditorService = personEditorService;
        }
        public EmployerRegistrationEditorService(IRepository da, IPersonEditorService personEditorService, IPaymentService paymentService) : base(da, paymentService)
        {
            if (personEditorService == null)
            {
                throw new Exception("personEditorService");
            }

            _personEditorService = personEditorService;
        }