Пример #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;
        }
Пример #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;
        }
Пример #3
0
        public EmployerRegistrationService(IRepository da, IGateService gateService, IService serviceCharge, IPaymentService paymentService) : base(da, paymentService)
        {
            if (gateService == null)
            {
                throw new ArgumentNullException("gateService");
            }

            _gateService   = gateService;
            _serviceCharge = serviceCharge;
        }
Пример #4
0
 public MainController(
     IService <EntryLogViewModel, EntryLog> entryLogService,
     IService <StoredPlateViewModel, StoredPlate> storedPlateService,
     IFirebaseService firebaseService,
     IGateService gateService)
 {
     this.entryLogService    = entryLogService;
     this.storedPlateService = storedPlateService;
     this.firebaseService    = firebaseService;
     this.gateService        = gateService;
 }
Пример #5
0
        public GateController(IGateService GateService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _GateService = GateService;
            _unitOfWork  = unitOfWork;
            _exception   = exec;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
Пример #6
0
        public TeacherSubscriptionService(IRepository da, IGateService gateService, IImageManager passportManager, IService serviceCharge, IPaymentService paymentService) : base(da, passportManager, paymentService)
        {
            if (gateService == null)
            {
                throw new ArgumentNullException("gateService");
            }
            if (serviceCharge == null)
            {
                throw new ArgumentNullException("serviceCharge");
            }

            _gateService   = gateService;
            _serviceCharge = serviceCharge;
        }
Пример #7
0
 public ClassifiersController(IAirportService airportService, IAirportSchemeService airportSchemeService,
                              ICityService cityService, ICountryService countryService, IGateService gateService, IFlightService flightService,
                              IPlaneService planeService, ITerminalService terminalService, ITimeTableService timeTableService)
 {
     _airportService       = airportService;
     _airportSchemeService = airportSchemeService;
     _cityService          = cityService;
     _countryService       = countryService;
     _gateService          = gateService;
     _flightService        = flightService;
     _planeService         = planeService;
     _terminalService      = terminalService;
     _timeTableService     = timeTableService;
 }
Пример #8
0
 public HomeController(IGateService gateService)
 {
     _gateService = gateService;
     _endDate     = new DateTime(_now.Year, _now.Month, _now.Day, 23, 59, 0);
     _startDate   = new DateTime(_now.Year, _now.Month, _now.Day, 0, 0, 0);
 }
Пример #9
0
 public GateController(IGateService gateService)
 {
     _gateService = gateService;
 }
Пример #10
0
 public EndPointService(IGateService gateService)
 {
     this._gateService = gateService;
 }