Exemplo n.º 1
0
 public SectionController(ISectionService SectionService, ILookupService lookupService, IClassService ClassService)
     : base()
 {
     this._SectionService = SectionService;
     this._lookupService = lookupService;
     this._ClassService = ClassService;
 }
Exemplo n.º 2
0
 public HomeController(IStudentService StudentsService, ILookupService lookupService, ISchoolService SchoolService)
     : base()
 {
     this._StudentService = StudentsService;
     this._lookupService = lookupService;
     this._schoolService = SchoolService;
 }
Exemplo n.º 3
0
 public ClassController(IClassService ClassService, ILookupService lookupService, IClassSubjectsService IClassSubjectsService)
     : base()
 {
     this._ClassService = ClassService;
     this._lookupService = lookupService;
     this._IClassSubjectsService = IClassSubjectsService;
 }
Exemplo n.º 4
0
        public StudentsController(IStudentService StudentsService, ILookupService lookupService,
            IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService,
            IStudentsTransportService StudentsTransportService, IStudentsDocsService StudentsDocsService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IBatchService BatchService, IAreaService AreaService,
            IStudentsAttendanceService StudentsAttendanceService, IStudentsClassService StudentsClassService)
            : base()
        {
            this._StudentService = StudentsService;
            this._StudentsParentService = StudentsParentService;
            this._StudentsMedicalService = StudentsMedicalService;
            this._StudentsTransportService = StudentsTransportService;
            this._StudentsDocsService = StudentsDocsService;
            this._StudentsClassService = StudentsClassService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._AreaService = AreaService;

            this._lookupService = lookupService;

            this._StudentsAttendanceService = StudentsAttendanceService;
        }
Exemplo n.º 5
0
 public UserController(IUserService ObjService, IUserRoleRightsService UserRoleRightsServices, ILookupService lookupService)
     : base()
 {
     this._ObjService = ObjService;
     this._userRoleRightsServices = UserRoleRightsServices;
     this._lookupService = lookupService;
 }
Exemplo n.º 6
0
 public ClientMonitor(IMessageDispatcher msgDispatch, string userName, List<ServerMetadata> servers)
 {
     _msgDispatch = msgDispatch;
     _monitoredReservations = new Dictionary<int, Reservation>();
     _userName = userName;
     _servers = servers;
     _activeServer = null;
 }
Exemplo n.º 7
0
 public FeeFineController(IFeeFineService FeeFineService, IFeeHeadService FeeHeadService,
     ILookupService lookupService)
     : base()
 {
     this._FeeFineService = FeeFineService;
     this._FeeHeadService = FeeHeadService;
     this._lookupService = lookupService;
 }
 public InjuredPersonViewModelFactory(
     IAccidentRecordService accidentRecordService,
     IEmployeeService employeeService,
     ILookupService lookupService)
 {
     _accidentRecordService = accidentRecordService;
     _employeeService = employeeService;
     _lookupService = lookupService;
 }
 public FeeStructureController(IFeeStructureService FeeStructureService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     IFeeHeadService FeeHeadService)
     : base()
 {
     this._FeeStructureService = FeeStructureService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._FeeHeadService = FeeHeadService;
 }
        public EmployeeViewModelFactory(IEmployeeService employeeService, ISiteService siteService, ILookupService lookupService,
                                        ISiteGroupService siteGroupService, IRolesService rolesService, IRiskAssessorService riskAssessorService)
        {
            _employeeService = employeeService;
            _siteService = siteService;
            _siteGroupService = siteGroupService;
            _lookupService = lookupService;
            _rolesService = rolesService;
            _riskAssessorService = riskAssessorService;

            _addUsersViewModelFactory = new AddUsersViewModelFactory(_employeeService, _rolesService, _siteService, _siteGroupService);
        }
Exemplo n.º 11
0
        public EnquiryController(IEnquiryService EnquiryService, ILookupService lookupService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService)
            : base()
        {
            this._EnquiryService = EnquiryService;
            this._lookupService = lookupService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
        }
Exemplo n.º 12
0
 public ExamController(IExamService ExamService, ILookupService lookupService, IClassService ClassService, IAcademicYearService AcademicYearService, IExamSubjectsService IExamSubjectsService, IExamGradesService IExamGradesService, IExamMarksDetailIsService IExamMarksDetailIsService, IExamMarksService IExamMarksService)
     : base()
 {
     this._ExamService = ExamService;
     this._lookupService = lookupService;
     this._ClassService = ClassService;
     this._AcademicYearService = AcademicYearService;
     this._IExamSubjectsService = IExamSubjectsService;
     this._IExamGradesService = IExamGradesService;
     this._IExamMarksDetailIsService = IExamMarksDetailIsService;
     this._IExamMarksService = IExamMarksService;
 }
Exemplo n.º 13
0
 public ReportController(IExamService ExamService, ILookupService lookupService, IExamSubjectsService IExamSubjectsService, IExamMarksDetailIsService IExamMarksDetailIsService, IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IExamMarksService IExamMarksService)
     : base()
 {
     this._ExamService = ExamService;
     this._lookupService = lookupService;
     this._IExamSubjectsService = IExamSubjectsService;
     _IExamMarksDetailIsService = IExamMarksDetailIsService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     _IExamMarksService = IExamMarksService;
 }
Exemplo n.º 14
0
        public ComplaintController(IComplaintService ComplaintService, ILookupService lookupService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IStudentService StudentService)
            : base()
        {
            this._ComplaintService = ComplaintService;
            this._lookupService = lookupService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._StudentService = StudentService;
        }
Exemplo n.º 15
0
 public FeeConcessionController(IFeeConcessionService FeeConcessionService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService)
     : base()
 {
     this._FeeConcessionService = FeeConcessionService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
 }
Exemplo n.º 16
0
 public DocumentController(
     ILookupService lookupService,
     IDocumentLibraryService documentLibraryService,
     IStreamingDocumentLibraryService streamingDocumentLibraryService,
     IDocumentLibraryUploader documentLibraryUploader,
     ISiteService siteService, IDocumentService documentService,
     IStreamingClientDocumentService streamingClientDocumentService,
     IPeninsulaLog peninsulaLog)
 {
     _lookupService = lookupService;
     _documentLibraryService = documentLibraryService;
     _streamingDocumentLibraryService = streamingDocumentLibraryService;
     _documentLibraryUploader = documentLibraryUploader;
     _siteService = siteService;
     _documentService = documentService;
     _streamingClientDocumentService = streamingClientDocumentService;
     _peninsulaLog = peninsulaLog;
 }
Exemplo n.º 17
0
 public FeeReceiptController(IFeeReceiptService FeeReceiptService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService,
     IFeeHeadOptionalEntryService FeeHeadOptionalEntryService, ISchoolService SchoolService)
     : base()
 {
     this._FeeReceiptService = FeeReceiptService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
     this._FeeHeadOptionalEntryService = FeeHeadOptionalEntryService;
     this._SchoolService = SchoolService;
 }
Exemplo n.º 18
0
 public AcademicYearController(IAcademicYearService ObjService, ILookupService lookupService)
     : base()
 {
     this._ObjService = ObjService;
     this._lookupService = lookupService;
 }
Exemplo n.º 19
0
 public LookupController(UserManager <ApplicationUser> userManager, ILookupService lookupService) : base(userManager)
 {
     _lookupService = lookupService;
 }
Exemplo n.º 20
0
        /// <summary>
        /// CartService constructor
        /// </summary>
        /// <param name="cartRepository">The repository for accessing cart data</param>
        /// <param name="damProvider">The provider for providing images</param>
        /// <param name="cartViewModelFactory">Factory creating a <see cref="CartViewModel"/>.</param>
        /// <param name="couponViewService">The <see cref="ICouponViewService"/>.</param>
        /// <param name="lookupService">The <see cref="ILookupService"/>.</param>
        /// <param name="lineItemService">The <see cref="ILineItemService"/>.</param>
        /// <param name="fixCartService">The <see cref="IFixCartService"/>.</param>
        /// <param name="countryService">The <see cref="ICountryService"/></param>
        /// <param name="regionCodeProvider">The <see cref="IRegionCodeProvider"/></param>
        /// <param name="imageService">The <see cref="IImageService"/></param>
        public CartService(
            ICartRepository cartRepository,
            IDamProvider damProvider,
            ICartViewModelFactory cartViewModelFactory,
            ICouponViewService couponViewService,
            ILookupService lookupService,
            ILineItemService lineItemService,
            IFixCartService fixCartService,
            ICountryService countryService,
            IRegionCodeProvider regionCodeProvider,
            IImageService imageService)
        {
            if (cartRepository == null)
            {
                throw new ArgumentNullException("cartRepository");
            }
            if (damProvider == null)
            {
                throw new ArgumentNullException("damProvider");
            }
            if (cartViewModelFactory == null)
            {
                throw new ArgumentNullException("cartViewModelFactory");
            }
            if (couponViewService == null)
            {
                throw new ArgumentNullException("couponViewService");
            }
            if (lookupService == null)
            {
                throw new ArgumentNullException("lookupService");
            }
            if (lineItemService == null)
            {
                throw new ArgumentNullException("lineItemService");
            }
            if (fixCartService == null)
            {
                throw new ArgumentNullException("fixCartService");
            }
            if (countryService == null)
            {
                throw new ArgumentNullException("fixCartService");
            }
            if (regionCodeProvider == null)
            {
                throw new ArgumentNullException("regionCodeProvider");
            }
            if (imageService == null)
            {
                throw new ArgumentNullException("imageService");
            }

            CartRepository       = cartRepository;
            CartViewModelFactory = cartViewModelFactory;
            CouponViewService    = couponViewService;
            LookupService        = lookupService;
            LineItemService      = lineItemService;
            FixCartService       = fixCartService;
            CountryService       = countryService;
            RegionCodeProvider   = regionCodeProvider;
            ImageService         = imageService;
        }
Exemplo n.º 21
0
 public PartnerTracingViewModel(ISettings settings, IDialogService dialogService, IPartnerTracingService tracingService, IDashboardService dashboardService, ILookupService lookupService)
 {
     _settings         = settings;
     _dialogService    = dialogService;
     _tracingService   = tracingService;
     _dashboardService = dashboardService;
     _lookupService    = lookupService;
 }
Exemplo n.º 22
0
 public AccountServiceTest()
 {
     _accountService = BrokerService.Container.Resolve <IAccountsService>();
     _lookupService  = BrokerService.Container.Resolve <ILookupService>();
 }
Exemplo n.º 23
0
 public LookupsController(IUnitOfWork unitOfWork, ILookupService lookupService)
 {
     _unitOfWork    = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _lookupService = lookupService ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
Exemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LookupController"/> class.
 /// </summary>
 /// <param name="container">The container.</param>
 public LookupController(IServiceProvider container) : base(container)
 {
     _lookupService = container.GetService <ILookupService>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskController"/> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="userStore">The user store.</param>
 /// <param name="taskService">The task service.</param>
 /// <param name="projectService">The project service.</param>
 /// <param name="lookupService">The lookup service.</param>
 public TaskController(IMapper mapper, IPMUserStoreService userStore, ITaskService taskService, IProjectService projectService, ILookupService lookupService)
     : base(mapper, userStore)
 {
     this.taskService    = taskService;
     this.projectService = projectService;
     this.lookupService  = lookupService;
 }
Exemplo n.º 26
0
 public CaseController(ILookupService lookupService, ICrimeCaseService CaseService)
 {
     this.lookupService = lookupService;
     this.CaseService   = CaseService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AdministrationController"/> class.
 /// </summary>
 /// <param name="lookUpService">The look up service.</param>
 /// <param name="generalService">The general service.</param>
 public AdministrationController(ILookupService lookUpService, IGeneralService generalService, ISessionStateService session)
 {
     this.lookUpService  = lookUpService;
     this.generalService = generalService;
     this.session        = session;
 }
Exemplo n.º 28
0
 public OpportunityBusiness(IOpportunityService opportunityService, ILookupService lookupService, IMapper mapper)
 {
     _opportunityService = opportunityService;
     _lookupService      = lookupService;
     _mapper             = mapper;
 }
Exemplo n.º 29
0
        private IBookingService LookupClientStub(string userID)
        {
            ClientMetadata clientMd = null;

            bool contacted = false;

            while (!contacted)
            {
                try
                {
                    //TODO: Navaneeth: here
                    Log.Show(_userName, "#1");
                    clientMd = _activeServer.Lookup(userID);
                    Log.Show(_userName, "#2");
                    contacted = true;
                }
                catch (Exception)
                {
                    //server has failed
                    //update server reference
                    _activeServer = Helper.GetRandomServer(_servers);
                }
            }

            IBookingService client = null;

            if (clientMd != null)
            {

                String connectionString = "tcp://" + clientMd.IP_Addr + ":" + clientMd.Port + "/" + clientMd.Username + "/" + Common.Constants.BOOKING_SERVICE_NAME;

                //Log.Debug(_userName, "Looking up participant stub: " + connectionString);

                try
                {
                    client = (IBookingService)Activator.GetObject(
                                                                            typeof(ILookupService),
                                                                            connectionString);
                }
                catch (SocketException e)
                {
                    Log.Show(_userName, "ERROR: Could not connect to client: " + clientMd.Username + ". Exception: " + e);
                    //TODO: do something?
                }
            }

            return client;
        }
Exemplo n.º 30
0
 public HomeController(ISecurityService securityService, ILookupService lookupService)
 {
     _lookupService = lookupService;
 }
Exemplo n.º 31
0
        public ProductSpecificationsViewService(IComposerContext context, ILocalizationProvider localizationProvider, ILookupService lookupService)
        {
            if (localizationProvider == null)
            {
                throw new ArgumentNullException(nameof(localizationProvider));
            }
            if (lookupService == null)
            {
                throw new ArgumentNullException(nameof(lookupService));
            }

            Context          = context ?? throw new ArgumentNullException(nameof(context));
            ProductFormatter = new ProductFormatter(localizationProvider, lookupService);
        }
 public ClientDashboardViewModel(IDashboardService dashboardService, IDialogService dialogService, IInterviewService interviewService, ISettings settings, ILookupService lookupService)
 {
     _dashboardService = dashboardService;
     _dialogService    = dialogService;
     _interviewService = interviewService;
     _settings         = settings;
     _lookupService    = lookupService;
 }
Exemplo n.º 33
0
 public PersonController(IPersonService PersonService, ILookupService lookupService)
 {
     this.PersonService = PersonService;
     this.LookupService = lookupService;
 }
 public HomeController(ILookupService lookup, IBlobService blobService, ICacheAccessor cacheAccessor)
 {
     _lookup        = lookup;
     _blobService   = blobService;
     _cacheAccessor = cacheAccessor;
 }
Exemplo n.º 35
0
 public BatchController(IBatchService BatchService, ILookupService lookupService)
     : base()
 {
     this._BatchService = BatchService;
     this._lookupService = lookupService;
 }
Exemplo n.º 36
0
 public AdminController(ILookupService lookupService, IAdminService adminService)
 {
     _lookupService = lookupService;
     _adminService  = adminService;
 }
 public CostCalculationService(IDataRepository repository, ILoggingService loggingService, ILookupService securityService)
 {
     _repository      = repository;
     _loggingService  = loggingService;
     _securityService = securityService;
 }
Exemplo n.º 38
0
 public MinutesOfSessionController(ICircuitService CircuitService, IDefectsService DefectsService, ISessionService SessionService, ILookupService LookupService, ITextPredectionsService TextPredectionsService, ICrimeCaseService CaseService, ICircuitMembersService CircuitMembersService)
 {
     this.DefectsService         = DefectsService;
     this.SessionService         = SessionService;
     this.LookupService          = LookupService;
     this.TextPredectionsService = TextPredectionsService;
     this.CaseService            = CaseService;
     this.CircuitMembersService  = CircuitMembersService;
     this.CircuitService         = CircuitService;
 }
 public WitnessesController(IWitnessesService witnessrService, ILookupService LookupService, IPersonService PersonService)
 {
     this.WitnessService = witnessrService;
     this.LookupService  = LookupService;
     this.PersonService  = PersonService;
 }
Exemplo n.º 40
0
 public JogoService(IOptions <MyGamesAPIConfig> myGamesAPIConfig,
                    ILookupService lookupService)
 {
     _myGamesAPIConfig = myGamesAPIConfig.Value;
     _lookupService    = lookupService;
 }
Exemplo n.º 41
0
 public UserController(ILookupService lookupService, IPersonService PersonService, IUserService SecurityUserService)
 {
     this.lookupService       = lookupService;
     this.PersonService       = PersonService;
     this.SecurityUserService = SecurityUserService;
 }
 public UsersController(IUserService service, ILookupService lookupService) : base(service)
 {
     _lookupService = lookupService ?? throw new ArgumentNullException(nameof(lookupService));
 }
Exemplo n.º 43
0
 public PermissionService(IGroupDataContext dataContext, IPlatformServiceBusService platformServiceBusService, ILookupService lookupService)
 {
     _dataContext = dataContext;
     _platformServiceBusService = platformServiceBusService;
     _lookupService             = lookupService;
 }
Exemplo n.º 44
0
 public AreaController(IAreaService ObjService, ILookupService lookupService)
     : base()
 {
     this._ObjService = ObjService;
     this._lookupService = lookupService;
 }
 public LookupController(ILookupService service)
 {
     _service = service;
 }
Exemplo n.º 46
0
        void IClientMonitor.StartMonitoring()
        {
            _activeServer = Helper.GetRandomServer(_servers);
            while (true)
            {
                //Monitor all monitored reservations
                foreach(Reservation res in _monitoredReservations.Values){
                    //Only check a reservation if some participant is not online
                    if (res.ClientStubs.Count < (res.Participants.Count - 1))
                    {
                        //copy client stubs dictionary (to avoid unecessary synchronization)
                        Dictionary<string, IBookingService> clientStubs = new Dictionary<string, IBookingService>(res.ClientStubs);
                        foreach (string userID in res.Participants)
                        {
                            //If we do not have the stub of a given participant, check for it
                            if (!userID.Equals(_userName) && !clientStubs.ContainsKey(userID))
                            {
                                Log.Debug(_userName, "Verifying if offline participant " + userID + " of reservation " + res.ReservationID + " came online.");
                                IBookingService client = LookupClientStub(userID);
                                if (client != null)
                                {
                                    Log.Show(_userName, "Participant " + userID + " of reservation " + res.ReservationID + " has just came online.");
                                    _msgDispatch.ClientConnected(userID, client);
                                    //Lock here
                                    res.ClientStubs[userID] = client;
                                    //Unlock here
                                }
                            }
                        }
                    }
                }

                Thread.Sleep(SERVER_QUERY_TIME);
            }
        }
Exemplo n.º 47
0
 public LookupController(ILookupService lookupService)
 {
     _lookupService = lookupService;
 }
Exemplo n.º 48
0
 public void Initialize()
 {
     _lookupService = new LookupService();
 }
Exemplo n.º 49
0
 public DataTypeController(ILookupService lookupService)
 {
     _lookupService = lookupService;
 }
        /// <summary>
        /// CheckoutService constructor
        /// </summary>
        /// <param name="cartRepository">The repository for accessing cart data</param>
        /// <param name="cartService"></param>
        /// <param name="composerJsonSerializer">The json serializer</param>
        /// <param name="cartViewModelFactory"></param>
        /// <param name="lookupService"></param>
        /// <param name="addressRepository"></param>
        /// <param name="shippingMethodViewService"></param>
        /// <param name="imageService"></param>
        /// <param name="fulfillmentMethodRepository"></param>
        /// <param name="viewModelMapper"></param>
        /// <param name="lineItemViewModelFactory"></param>
        /// <param name="paymentRepository"></param>
        public CheckoutService(
            ICartRepository cartRepository,
            ICartService cartService,
            IComposerJsonSerializer composerJsonSerializer,
            ICartViewModelFactory cartViewModelFactory,
            ILookupService lookupService,
            IAddressRepository addressRepository,
            IShippingMethodViewService shippingMethodViewService,
            IImageService imageService,
            IFulfillmentMethodRepository fulfillmentMethodRepository,
            IViewModelMapper viewModelMapper,
            ILineItemViewModelFactory lineItemViewModelFactory,
            IPaymentRepository paymentRepository)
        {
            if (cartRepository == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(cartRepository)));
            }
            if (cartService == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(cartService)));
            }
            if (composerJsonSerializer == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(ComposerJsonSerializer)));
            }
            if (cartViewModelFactory == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(cartViewModelFactory)));
            }
            if (lookupService == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(LookupService)));
            }
            if (addressRepository == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(addressRepository)));
            }
            if (shippingMethodViewService == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(shippingMethodViewService)));
            }
            if (imageService == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(imageService)));
            }
            if (fulfillmentMethodRepository == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(fulfillmentMethodRepository)));
            }
            if (viewModelMapper == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(viewModelMapper)));
            }
            if (lineItemViewModelFactory == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(lineItemViewModelFactory)));
            }
            if (paymentRepository == null)
            {
                throw new ArgumentNullException(ArgumentNullMessageFormatter.FormatErrorMessage(nameof(paymentRepository)));
            }

            CartRepository              = cartRepository;
            CartService                 = cartService;
            ComposerJsonSerializer      = composerJsonSerializer;
            CartViewModelFactory        = cartViewModelFactory;
            LookupService               = lookupService;
            AddressRepository           = addressRepository;
            ShippingMethodViewService   = shippingMethodViewService;
            ImageService                = imageService;
            FulfillmentMethodRepository = fulfillmentMethodRepository;
            ViewModelMapper             = viewModelMapper;
            LineItemViewModelFactory    = lineItemViewModelFactory;
            PaymentRepository           = paymentRepository;

            _updateOperations = new Dictionary <string, UpdateOperation>();

            RegisterCartUpdateOperation <AddressViewModel>("ShippingAddress", UpdateShippingAddress, 1);
            RegisterCartUpdateOperation <RegisteredShippingAddressViewModel>("ShippingAddressRegistered", UpdateRegisteredShippingAddress, 1);
            RegisterCartUpdateOperation <CustomerSummaryViewModel>("GuestCustomerInfo", UpdateCustomer, 2);
            RegisterCartUpdateOperation <BillingAddressViewModel>("BillingAddress", UpdateBillingAddress, 3);
            RegisterCartUpdateOperation <RegisteredBillingAddressViewModel>("BillingAddressRegistered", UpdateRegisteredBillingAddress, 3);
            RegisterCartUpdateOperation <ShippingMethodViewModel>("ShippingMethod", UpdateShippingMethod, 4);
        }
 public LawyersDefectsController(IDefectsService PartiesService, ICrimeCaseService CaseService, ILookupService LookupService, IPersonService PersonService)
 {
     this.PartiesService = PartiesService;
     this.CaseService    = CaseService;
     this.LookupService  = LookupService;
     this.PersonService  = PersonService;
 }
Exemplo n.º 52
0
 public SubjectController(ISubjectService SubjectService, ILookupService lookupService)
     : base()
 {
     this._SubjectService = SubjectService;
     this._lookupService = lookupService;
 }
Exemplo n.º 53
0
        //
        // Initialize once to prevent re-querying DB
        //
        public Defaults(
            ILookupService lServ,
            IConfigService cfg,
            ITransportProvidersService tpServ,
            UserManager <MacheteUser> userManager,
            RoleManager <MacheteRole> roleManager
            )
        {
            cfgServ     = cfg;
            this.lServ  = lServ;
            this.tpServ = tpServ;
            hoursNum    = new SelectList(new[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" }
                                         .Select(x => new LookupNumber {
                Value = x, Text = x
            }),
                                         "Value", "Text", "7"
                                         );
            daysNum = new SelectList(new[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14" }
                                     .Select(x => new LookupNumber {
                Value = x, Text = x
            }),
                                     "Value", "Text", "7"
                                     );
            skillLevelNum = new SelectList(new[] { "0", "1", "2", "3" }
                                           .Select(x => new SelectListItem {
                Value = x, Text = x
            }),
                                           "Value", "Text", "0");
            categories = new SelectList(
                new[] {
                LCategory.maritalstatus,
                LCategory.race,
                LCategory.neighborhood,
                LCategory.gender,
                LCategory.transportmethod,
                LCategory.transportTransactType,
                LCategory.countryoforigin,
                LCategory.activityName,
                LCategory.activityType,
                LCategory.eventtype,
                LCategory.orderstatus,
                LCategory.emplrreference,
                LCategory.worktype,
                LCategory.memberstatus,
                LCategory.skill,
                LCategory.emailstatus,
                LCategory.emailTemplate,
                LCategory.housingType,
                LCategory.vehicleTypeID,
                LCategory.workerRating,
                LCategory.incomeSourceID,
                LCategory.usBornChildren,
                LCategory.educationLevel,
                LCategory.farmLabor,
                LCategory.training,
                LCategory.income
            }
                .Select(x => new SelectListItem {
                Value = x, Text = x
            }),
                "Value", "Text", LCategory.activityName);

            yesnoEN = new List <SelectListItem>();
            yesnoEN.Add(new SelectListItem {
                Selected = false, Text = "No", Value = "false"
            });
            yesnoEN.Add(new SelectListItem {
                Selected = false, Text = "Yes", Value = "true"
            });
            yesnoES = new List <SelectListItem>();
            yesnoES.Add(new SelectListItem {
                Selected = false, Text = "No", Value = "false"
            });
            yesnoES.Add(new SelectListItem {
                Selected = false, Text = "Sí", Value = "true"
            });

            _userManager = userManager;
            _roleManager = roleManager;
        }
Exemplo n.º 54
0
 public ConfigController(ILookupService serv)
 {
     this.serv = serv;
 }