Beispiel #1
0
 public AgencyController(IEmployeeService employeeService, IAgencyService agencyService, IProvinceService provinceService)
     : base(employeeService)
 {
     this._agencyService   = agencyService;
     this._employeeService = employeeService;
     this._provinceService = provinceService;
 }
 public AuthController(IAccountService accountService, ISharedService sharedService, IAgencyService agencyService, IFacebookHelper facebookHelper)
 {
     _accountService = accountService;
     _sharedService  = sharedService;
     _agencyService  = agencyService;
     _facebookHelper = facebookHelper;
 }
Beispiel #3
0
 public PgCostBuilder(IPgStageBuilder pgStageBuilder,
                      IRuleService ruleService,
                      ICostStageRevisionService costStageRevisionService,
                      IAgencyService agencyService,
                      IProjectService projectService,
                      EFContext efContext,
                      ICostNumberGeneratorService costNumberGeneratorService,
                      IPgCurrencyService currencyService,
                      IPgLedgerMaterialCodeService pgLedgerMaterialCodeService,
                      ICostLineItemService costLineItemService,
                      ICostTemplateVersionService costTemplateVersionService,
                      IPermissionService permissionService,
                      IPgCostService pgCostService,
                      IPgCostSectionTotalsBuilder pgTotalsBuilder,
                      IPgPaymentService pgPaymentService,
                      IExchangeRateService exchangeRateService)
 {
     _pgStageBuilder           = pgStageBuilder;
     _ruleService              = ruleService;
     _costStageRevisionService = costStageRevisionService;
     _agencyService            = agencyService;
     _projectService           = projectService;
     _efContext = efContext;
     _costNumberGeneratorService  = costNumberGeneratorService;
     _currencyService             = currencyService;
     _pgLedgerMaterialCodeService = pgLedgerMaterialCodeService;
     _costLineItemService         = costLineItemService;
     _costTemplateVersionService  = costTemplateVersionService;
     _permissionService           = permissionService;
     _pgCostService       = pgCostService;
     _pgTotalsBuilder     = pgTotalsBuilder;
     _pgPaymentService    = pgPaymentService;
     _exchangeRateService = exchangeRateService;
 }
Beispiel #4
0
 public ProfileController(
     IHostingEnvironment hostingEnvironment,
     ILangService langService,
     IMapper mapper,
     IViewRenderService viewRenderService,
     IUnitOfWorkAsync unitOfWork,
     ISettingService settingService,
     ISysUserService sysUserService,
     IAffiliateService affiliateService,
     ICoinTransactionService coinTransactionService,
     ILotteryHistoryService lotteryHistoryService,
     IDataContextAsync dataContextAsync,
     ITemplateService templateService,
     IAgencyService agencyService)
 {
     this._hostingEnvironment     = hostingEnvironment;
     this._langService            = langService;
     this._mapper                 = mapper;
     this._viewRenderService      = viewRenderService;
     this._settingService         = settingService;
     this._coinTransactionService = coinTransactionService;
     this._sysUserService         = sysUserService;
     this._affiliateService       = affiliateService;
     this._unitOfWork             = unitOfWork;
     this._templateService        = templateService;
     this._dataContextAsync       = dataContextAsync;
     this._lotteryHistoryService  = lotteryHistoryService;
     this._agencyService          = agencyService;
 }
Beispiel #5
0
 public AttendeesController(IAttendeeService attendeeService,
                            IAgencyService agencyService,
                            IExcelService excelService)
 {
     _attendeeService = attendeeService;
     _agencyService   = agencyService;
     _excelService    = excelService;
 }
 public MessagingService(ITemplateService templateService, ICalendarService calendarService, IConfigurationService configurationService, IAgencyService agencyService, ISmtpService smtpService)
 {
     this.templateService = templateService;
     this.calendarService = calendarService;
     this.configurationService = configurationService;
     this.agencyService = agencyService;
     this.smtpService = smtpService;
 }
 public NGeniusPaymentService(IBookingRecordManager bookingRecordManager,
                              INGeniusClient client, IAgencyService agencyService, ICreditCardPaymentManagementService paymentService)
 {
     _bookingRecordManager = bookingRecordManager;
     _client         = client;
     _agencyService  = agencyService;
     _paymentService = paymentService;
 }
 public ExternalController(IAgencyService agencyService, IProductRepository productRepository, IExternalService externalService, IMatchingService matchingService, IMetaProductRepository metaProductRepository)
 {
     this.agencyService = agencyService;
     this.productRepository = productRepository;
     this.externalService = externalService;
     this.matchingService = matchingService;
     this.metaProductRepository = metaProductRepository;
 }
Beispiel #9
0
 public AgencyController(ILogger <PartnerController> logger,
                         IAgencyService service,
                         IMapper mapper)
 {
     this.logger  = logger;
     this.service = service;
     this.mapper  = mapper;
 }
Beispiel #10
0
 public AgencysController(IAccountRoleService accountRoleService, IAccountService accountService, IRoleService roleService, IMapper mapper, IAgencyService agnecySerivce)
 {
     _accountRoleService = accountRoleService;
     _accountService     = accountService;
     _roleService        = roleService;
     _mapper             = mapper;
     _agencySerivce      = agnecySerivce;
 }
Beispiel #11
0
 public AgencyController(UserManager <ApplicationUser> userManager,
                         IAgencyService AgencyService,
                         ILogger <AgencyController> logger)
     : base(userManager)
 {
     this._AgencyService = AgencyService;
     this._logger        = logger;
 }
Beispiel #12
0
 public AgencyController(IAgencyService agencyService, IAuthManager authManager, IAgentService agentService,
                         ILocationService locationService)
 {
     _agencyService   = agencyService;
     _authManager     = authManager;
     _agentService    = agentService;
     _locationService = locationService;
 }
 public PaymentController(IWalletService walletService, ICampaignService campaignService,
                          IPaymentService paymentService, INotificationService __INotificationService, IAgencyService ___IAgencyService)
 {
     _campaignService     = campaignService;
     _walletService       = walletService;
     _paymentService      = paymentService;
     _notificationService = __INotificationService;
     _IAgencyService      = ___IAgencyService;
 }
 public AgencyController(
     IAgencyService agencies,
     UserManager <User> userManager,
     IImageService images)
 {
     this.agencies    = agencies;
     this.userManager = userManager;
     this.images      = images;
 }
 public CarsController(UserManager <User> userManager,
                       IAgencyCarService cars,
                       IAgencyService agencies,
                       IImageService images)
 {
     this.userManager = userManager;
     this.cars        = cars;
     this.agencies    = agencies;
     this.images      = images;
 }
Beispiel #16
0
        public AgencyPopup()
        {
            agencyService = DependencyResolver.Kernel.Get <IAgencyService>();

            InitializeComponent();

            // MVVM Data binding
            (this.Content as FrameworkElement).DataContext = this;

            AddHandler(Keyboard.PreviewKeyDownEvent, (KeyEventHandler)HandleKeyDownEvent);
        }
Beispiel #17
0
 public AgencyCampaignController(ISharedService sharedService, IWalletService walletService,
                                 IAccountService accountService, IFileHelper fileHelper, IPaymentService paymentService, IAgencyService agencyService,
                                 ICampaignService campaignService, INotificationService notificationService)
 {
     _campaignService     = campaignService;
     _sharedService       = sharedService;
     _notificationService = notificationService;
     _accountService      = accountService;
     _fileHelper          = fileHelper;
     _paymentService      = paymentService;
     _walletService       = walletService;
     _agencyService       = agencyService;
 }
        public AgencyAddEdit(AgencyViewModel AgencyViewModel, bool isCreateProcess, bool isPopup = false)
        {
            AgencyService = DependencyResolver.Kernel.Get <IAgencyService>();

            // Initialize form components
            InitializeComponent();

            this.DataContext = this;

            CurrentAgency   = AgencyViewModel;
            IsCreateProcess = isCreateProcess;
            IsPopup         = isPopup;
        }
Beispiel #19
0
 public AgencyType(IAgencyService agencyService)
 {
     Field(f => f.Id).Description("Id de la agencia");
     Field(f => f.Name).Description("Nombre de la agencia");
     Field <CityType>(
         "city",
         resolve: context => agencyService.CityById(context.Source.CityId)
         );
     Field <StateType>(
         "state",
         resolve: context => agencyService.StateById(context.Source.StateId)
         );
 }
 public SeedDataController(IServiceProvider provider)
 {
     countryService           = provider.GetRequiredService <ICountryService>();
     regionService            = provider.GetRequiredService <IRegionService>();
     municipalityService      = provider.GetRequiredService <IMunicipalityService>();
     cityService              = provider.GetRequiredService <ICityService>();
     bankService              = provider.GetRequiredService <IBankService>();
     professionService        = provider.GetRequiredService <IProfessionService>();
     licenceTypeService       = provider.GetRequiredService <ILicenceTypeService>();
     sectorService            = provider.GetRequiredService <ISectorService>();
     agencyService            = provider.GetRequiredService <IAgencyService>();
     taxAdministrationService = provider.GetRequiredService <ITaxAdministrationService>();
     companyService           = provider.GetRequiredService <ICompanyService>();
 }
 public A5MessageHandler(ILogger logger,
                         IGdamClient gdamClient,
                         IAgencyService agencyService,
                         IProjectService projectService,
                         IUserService userService,
                         IBrandService brandService)
 {
     _logger         = logger;
     _gdamClient     = gdamClient;
     _agencyService  = agencyService;
     _projectService = projectService;
     _userService    = userService;
     _brandService   = brandService;
 }
Beispiel #22
0
 public AgentInvitationAcceptService(EdoContext context, INotificationService notificationService,
                                     ILogger <AgentInvitationAcceptService> logger, IAdminAgencyManagementService agencyManagementService,
                                     Agents.IAgentService agentService, IInvitationRecordService invitationRecordService,
                                     IAccountManagementService accountManagementService, IAgencyService agencyService)
 {
     _context             = context;
     _notificationService = notificationService;
     _logger = logger;
     _agencyManagementService  = agencyManagementService;
     _agentService             = agentService;
     _agencyService            = agencyService;
     _invitationRecordService  = invitationRecordService;
     _accountManagementService = accountManagementService;
 }
 public AgentRegistrationService(EdoContext context,
                                 IAgentService agentService,
                                 IOptions <AgentRegistrationNotificationOptions> notificationOptions,
                                 INotificationService notificationService,
                                 ILogger <AgentRegistrationService> logger,
                                 IAgencyService agencyService)
 {
     _context             = context;
     _agentService        = agentService;
     _notificationOptions = notificationOptions.Value;
     _notificationService = notificationService;
     _logger        = logger;
     _agencyService = agencyService;
 }
 public AuthenticationController(ILangService langService, IMapper mapper, ISettingService settingService,
                                 IAgencyService agencyService, IAffiliateService affiliateService, IAgencyTokenService agencyTokenService,
                                 ISysUserService sysUserService, IUnitOfWorkAsync unitOfWork, ITemplateService templateService, IViewRenderService viewRenderService)
 {
     _langService        = langService;
     _mapper             = mapper;
     _sysUserService     = sysUserService;
     _agencyService      = agencyService;
     _affiliateService   = affiliateService;
     _agencyTokenService = agencyTokenService;
     _settingService     = settingService;
     _templateService    = templateService;
     _unitOfWork         = unitOfWork;
     _viewRenderService  = viewRenderService;
 }
Beispiel #25
0
 public AccountsController(IAccountService accountservice, IRoleService roleservice, IAccountRoleService acountroleservice, IConfiguration config, IMapper mapper, IAdvisorService advisorService, IAgencyService agencyService, IVerifierService verifierService, IUserService userService, IEmailSender emailSender, ICompanyService companyService, ICustomerService customerService)
 {
     this._accountservice     = accountservice;
     this._roleservice        = roleservice;
     this._accountroleservice = acountroleservice;
     this._config             = config;
     this._mapper             = mapper;
     this._advisorService     = advisorService;
     this._agencyService      = agencyService;
     this._verifierService    = verifierService;
     this._userService        = userService;
     this._emailSender        = emailSender;
     this._companyService     = companyService;
     this._customerService    = customerService;
 }
Beispiel #26
0
        public AgencyList()
        {
            // Get required services
            AgencyService = DependencyResolver.Kernel.Get <IAgencyService>();

            // Initialize form components
            InitializeComponent();

            this.DataContext = this;

            Thread displayThread = new Thread(() => SyncData());

            displayThread.IsBackground = true;
            displayThread.Start();
        }
Beispiel #27
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Standard Ninject initialization
            StandardKernel kernel = new StandardKernel();

            kernel.Load(Assembly.GetExecutingAssembly());

            _kernel = kernel;


            //this is only for WinForms app
            IAgencyService service = kernel.Get <IAgencyService>();

            Application.Run(new Form1(service));  //Constructor injection in new Form1
        }
        public void Setup()
        {
            _agencyId = "Id1";
            _agencies = GetAgencies(_agencyId);
            _payments = new List <Payment>()
            {
                new Payment()
                {
                    AgencyId = _agencyId
                }
            };

            _mockDocumentStore   = new Mock <IDocumentStore>();
            _mockDocumentSession = new Mock <IAsyncDocumentSession>();
            _mockDocumentStore.Setup(x => x.OpenAsyncSession()).Returns(_mockDocumentSession.Object);

            _mockDocumentSession.Setup(x => x.LoadAsync <Agency>(It.IsAny <List <string> >(), It.IsAny <CancellationToken>())).ReturnsAsync(_agencies);

            _agencyService = new AgencyService(_mockDocumentStore.Object);
        }
Beispiel #29
0
 public AgenciesController(IChildAgencyService childAgencyService,
                           IAgentContextService agentContextService,
                           IAgentInvitationCreateService agentInvitationCreateService,
                           IAgencyManagementService agencyManagementService,
                           IAgentInvitationAcceptService agentInvitationAcceptService,
                           ITokenInfoAccessor tokenInfoAccessor,
                           IAgencyService agencyService,
                           IIdentityUserInfoService identityUserInfoService,
                           IAgentRolesService agentRolesService,
                           IContractFileService contractFileService)
 {
     _childAgencyService           = childAgencyService;
     _agentContextService          = agentContextService;
     _agentInvitationCreateService = agentInvitationCreateService;
     _agencyManagementService      = agencyManagementService;
     _agentInvitationAcceptService = agentInvitationAcceptService;
     _tokenInfoAccessor            = tokenInfoAccessor;
     _agencyService           = agencyService;
     _identityUserInfoService = identityUserInfoService;
     _agentRolesService       = agentRolesService;
     _contractFileService     = contractFileService;
 }
Beispiel #30
0
 public BaseAdminModelFactory(IFacultyService facultyService,
                              ICountryService countryService,
                              IUserActivityService userActivityService,
                              IUserService userService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              IProfessorService professorService,
                              IProvinceService provinceService,
                              IStaticCacheManager cacheManager,
                              IAcademicRankService academicRankService,
                              IResearchIssueService researchIssueService,
                              IAgencyService agencyService,
                              IResearcherService researcherService,
                              IEducationLevelService educationLevelService,
                              IStrategyGroupService strategyGroupService,
                              IFiscalScheduleService fiscalScheduleService,
                              ITitleService titleService,
                              IInstituteService instituteService)
 {
     this._facultyService        = facultyService;
     this._countryService        = countryService;
     this._userActivityService   = userActivityService;
     this._userService           = userService;
     this._dateTimeHelper        = dateTimeHelper;
     this._emailAccountService   = emailAccountService;
     this._professorService      = professorService;
     this._provinceService       = provinceService;
     this._cacheManager          = cacheManager;
     this._academicRankService   = academicRankService;
     this._researchIssueService  = researchIssueService;
     this._agencyService         = agencyService;
     this._researcherService     = researcherService;
     this._educationLevelService = educationLevelService;
     this._strategyGroupService  = strategyGroupService;
     this._fiscalScheduleService = fiscalScheduleService;
     this._titleService          = titleService;
     this._instituteService      = instituteService;
 }
Beispiel #31
0
 public AgencyController(IAgencyService agencyService, ICanSave saver, IFormsAuthentication formAuth)
 {
     this.agencyService = agencyService;
     this.saver = saver;
     this.formsAuth = formAuth;
 }
Beispiel #32
0
 public AdminController(IAgencyService agencyService, ICanSave saver, IAgencyRepository agencyRepository)
 {
     this.agencyService = agencyService;
     this.saver = saver;
     this.agencyRepository = agencyRepository;
 }
 public AgentService(IRepository <Agent> agentRepository, IAgencyService agencyService, IMapper mapper)
 {
     _agentRepository = agentRepository;
     _agencyService   = agencyService;
     _mapper          = mapper;
 }
Beispiel #34
0
 public LoginController(IAgencyService agencyService, IFormsAuthentication formsAuth)
 {
     this.agencyService = agencyService;
     this.formsAuth = formsAuth;
 }
 public ProfileController(IAgencyService agencyService, IImportService importService, ICanSave saver)
 {
     this.agencyService = agencyService;
     this.importService = importService;
     this.saver = saver;
 }
 public AgencyController(IAgencyService agencyService)
 {
     _agencyService = agencyService;
 }
Beispiel #37
0
 public TemplateService(IAgencyService agencyService)
 {
     this.agencyService = agencyService;
 }
 public AccountController()
 {
     this._uow = new UnitOfWork();
     this._userService = new UserService(this._uow);
     this._agencyService = new AgencyService(this._uow);
 }