Example #1
0
 public ReferralController(IReferralService referralService, IOptions <AppSettings> appSettings, IBusinessService businessService, ILoggingService logService)
 {
     _referralService = referralService;
     _appSettings     = appSettings;
     _logService      = logService;
     _businessService = businessService;
 }
Example #2
0
 public CustomersController(
     ICustomerProfileClient customerProfileClient,
     IOperationsHistoryClient operationsHistoryClient,
     IReferralService referralService,
     IPrivateBlockchainFacadeClient pbfClient,
     ISettingsService settingsService,
     IPrivateBlockchainFacadeClient privateBlockchainFacadeClient,
     ICustomerManagementServiceClient customerManagementServiceClient,
     IWalletManagementClient walletManagementClient,
     ICrossChainWalletLinkerClient crossChainWalletLinkerClient,
     IHistoryConverter historyConverter,
     ICampaignClient campaignClient,
     IMapper mapper)
 {
     _customerProfileClient   = customerProfileClient;
     _operationsHistoryClient = operationsHistoryClient;
     _referralService         = referralService;
     _pbfClient       = pbfClient;
     _settingsService = settingsService;
     _privateBlockchainFacadeClient = privateBlockchainFacadeClient ??
                                      throw new ArgumentNullException(nameof(privateBlockchainFacadeClient));
     _customerManagementServiceClient = customerManagementServiceClient ??
                                        throw new ArgumentNullException(nameof(customerManagementServiceClient));
     _walletManagementClient = walletManagementClient ??
                               throw new ArgumentNullException(nameof(walletManagementClient));
     _crossChainWalletLinkerClient = crossChainWalletLinkerClient ??
                                     throw new ArgumentNullException(nameof(crossChainWalletLinkerClient));
     _historyConverter = historyConverter;
     _campaignClient   = campaignClient;
     _mapper           = mapper;
 }
 public EmployeeService(IUnitOfWork unitOfWork,
                        IRepository <Employee> employeeRepo,
                        IRepository <Terminal> terminalRepo,
                        IRepository <Wallet> walletRepo,
                        IRepository <Department> departmentRepo,
                        IServiceHelper serviceHelper,
                        IUserService userSvc,
                        IRoleService roleSvc,
                        IReferralService referralSvc,
                        ISMSService smsSvc,
                        IMailService mailSvc,
                        IHostingEnvironment hostingEnvironment,
                        IGuidGenerator guidGenerator,
                        IOptions <AppConfig> _appConfig)
 {
     _unitOfWork         = unitOfWork;
     _repo               = employeeRepo;
     _terminalRepo       = terminalRepo;
     _walletRepo         = walletRepo;
     _departmentRepo     = departmentRepo;
     _serviceHelper      = serviceHelper;
     _userSvc            = userSvc;
     _referralSvc        = referralSvc;
     _smsSvc             = smsSvc;
     _mailSvc            = mailSvc;
     appConfig           = _appConfig.Value;
     _hostingEnvironment = hostingEnvironment;
     _guidGenerator      = guidGenerator;
     _roleSvc            = roleSvc;
 }
Example #4
0
 public StartupManager(ILog log, IMemoryCache memoryCache, IReferralService referralService, IDisabledAssetRepository disabledAssetRepository)
 {
     _log                     = log;
     _memoryCache             = memoryCache;
     _referralService         = referralService;
     _disabledAssetRepository = disabledAssetRepository;
 }
 public ReferralController(ILogService loggerService, IReferralService referralService, IEmailService emailService, IUserService userService, IPostService postService)
 {
     this.loggerService    = loggerService;
     this._referralService = referralService;
     this._emailService    = emailService;
     this._userService     = userService;
     this._postService     = postService;
 }
Example #6
0
 public ReferralsController(IMapper mapper, ILogFactory logFactory, IReferralService referralService,
                            IRequestContext requestContext)
 {
     _mapper          = mapper;
     _referralService = referralService;
     _requestContext  = requestContext;
     _log             = logFactory.CreateLog(this);
 }
 public ReferralController(IClinicianService clinicianService, UserManager <ApplicationUser> userManager, IProfileService profileService, IProfileMatchService profileMatchService, IReferralService referralService, IEmailSender emailSender)
 {
     _clinicianService    = clinicianService;
     _userManager         = userManager;
     _profileService      = profileService;
     _profileMatchService = profileMatchService;
     _referralService     = referralService;
     _emailSender         = emailSender;
 }
Example #8
0
 public ExaminationService(IExaminationUpcomingRepository upcomingRepository, IExaminationPreviousRepository previousRepository, IDiagnosisService diagnosisService, IPrescriptionService prescriptionService, IReferralService referralService, ISymptomService symptomService, ITherapyService therapyService)
 {
     _upcomingRepository  = upcomingRepository;
     _previousRepository  = previousRepository;
     _diagnosisService    = diagnosisService;
     _prescriptionService = prescriptionService;
     _referralService     = referralService;
     _symptomService      = symptomService;
     _therapyService      = therapyService;
 }
 public EmployerController(IEmployerService employerService,
                           IOpportunityService opportunityService,
                           IReferralService referralService,
                           IMapper mapper)
 {
     _employerService    = employerService;
     _opportunityService = opportunityService;
     _referralService    = referralService;
     _mapper             = mapper;
 }
Example #10
0
 public UserController(IUserService userService, IAuthenticationService authenticationService, IEmailRule emailBusinessRule, IMailService mailService, IReferralService referralService,
                       IValidator <SignupViewModel> signupValidator, IValidator <ChangePasswordModel> changePasswordValidator)
 {
     UserService             = userService;
     AuthenticationService   = authenticationService;
     EmailBusinessRule       = emailBusinessRule;
     MailService             = mailService;
     ReferralService         = referralService;
     SignupValidator         = signupValidator;
     ChangePasswordValidator = changePasswordValidator;
 }
Example #11
0
 public HomeController(UserManager <ApplicationUser> userManager, IDoctorService doctorService, IMedicamentService medicamentService, IPrescriptionService prescriptionService, IPatientService patientAccountService, IVisitService visitService, ISpecializationService specializationService, IReferralService referralService)
 {
     _userManager           = userManager;
     _doctorService         = doctorService;
     _medicamentService     = medicamentService;
     _prescriptionService   = prescriptionService;
     _patientAccountService = patientAccountService;
     _visitService          = visitService;
     _specializationService = specializationService;
     _referralService       = referralService;
 }
 public ReferralsController(
     IReferralService referralService,
     IFriendReferralService friendReferralService,
     ISettingsService settingsService,
     IMapper mapper,
     ILogFactory logFactory) : base(settingsService, logFactory)
 {
     _referralService       = referralService;
     _friendReferralService = friendReferralService;
     _mapper = mapper;
 }
Example #13
0
 public ThreadService(IThreadRepository threadRepository, IFirebaseThreadRepository fbThreadRepository, IReferralService referralService, IMessageService messageService, IChannelService channelService, IAgentService agentService, ICounterService counterService, ICounterRepository counterRepository, IMessageRepository messageRepository)
 {
     _threadRepository   = threadRepository;
     _fbThreadRepository = fbThreadRepository;
     _messageRepository  = messageRepository;
     _counterRepository  = counterRepository;
     _counterService     = counterService;
     _channelService     = channelService;
     _agentService       = agentService;
     _referralService    = referralService;
     _messageService     = messageService;
 }
        public ReferralServiceTests()
        {
            var mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new AutoMapperProfile(3));
            });

            var mapper = mockMapper.CreateMapper();

            _referralService =
                new ReferralService(_partnersIntegrationClientMock.Object, mapper, EmptyLogFactory.Instance);
        }
 public ReferralsController(
     IRequestContext requestContext,
     IReferralClient referralClient,
     ICustomerService customerService,
     IReferralService referralService,
     IMapper mapper)
 {
     _requestContext  = requestContext;
     _referralClient  = referralClient;
     _customerService = customerService;
     _referralService = referralService;
     _mapper          = mapper;
 }
Example #16
0
 public CustomerController(ICustomerService customerService, IFacebookConversationService facebookConversationService, IBusinessService businessService, ITicketService ticketService, INoteService noteService, IReferralService referralService, IThreadService threadService, IAgentService agentService, IMessageService messageService, IFacebookService facebookService, IChannelService channelService, IOptions <AppSettings> appSettings, ILoggingService logService)
 {
     _customerService             = customerService;
     _messageService              = messageService;
     _appSettings                 = appSettings;
     _channelService              = channelService;
     _facebookService             = facebookService;
     _agentService                = agentService;
     _threadService               = threadService;
     _referralService             = referralService;
     _noteService                 = noteService;
     _ticketService               = ticketService;
     _businessService             = businessService;
     _facebookConversationService = facebookConversationService;
     _logService = logService;
 }
Example #17
0
 public CustomerService(IUnitOfWork unitOfWork, IRoleService roleManagerSvc,
                        ISMSService smsSvc, IUserService userManagerSvc,
                        IReferralService referralSvc, IServiceHelper svcHelper,
                        IMailService emailSvc, IGuidGenerator guidGenerator,
                        IHostingEnvironment hostingEnvironment, IOptions <AppConfig> _appConfig)
 {
     appConfig           = _appConfig.Value;
     _unitOfWork         = unitOfWork;
     _userManagerSvc     = userManagerSvc;
     _svcHelper          = svcHelper;
     _referralSvc        = referralSvc;
     _roleManagerSvc     = roleManagerSvc;
     _smsSvc             = smsSvc;
     _emailSvc           = emailSvc;
     _guidGenerator      = guidGenerator;
     _hostingEnvironment = hostingEnvironment;
 }
 public FriendReferralService(
     IReferralService referralService,
     IRabbitPublisher <FriendReferralEvent> friendReferralPublisher,
     ICustomerProfileClient customerProfileClient,
     IFriendReferralHistoryRepository friendReferralHistoryRepository,
     INotificationPublisherService notificationPublisherService,
     ICampaignClient campaignClient,
     ILogFactory logFactory)
 {
     _referralService                 = referralService;
     _friendReferralPublisher         = friendReferralPublisher;
     _customerProfileClient           = customerProfileClient;
     _friendReferralHistoryRepository = friendReferralHistoryRepository;
     _notificationPublisherService    = notificationPublisherService;
     _campaignClient = campaignClient;
     _log            = logFactory.CreateLog(this);
 }
Example #19
0
 public UserService(
     IUnitOfWork unitOfWork,
     IUserRepository userRepository,
     IRoleRepository roleRepository,
     IPostRepository postRepository,
     IUserRoleMappingRepository userRoleMappingRepository,
     IPostService postService,
     IReferralService referralService)
 {
     this._unitOfWork                = unitOfWork;
     this._userRepository            = userRepository;
     this._roleRepository            = roleRepository;
     this._postRepository            = postRepository;
     this._userRoleMappingRepository = userRoleMappingRepository;
     this._postService               = postService;
     this._referralService           = referralService;
 }
        public ReferralServiceTests()
        {
            _referralClient               = new Mock <IReferralClient>();
            _campaignClient               = new Mock <ICampaignClient>();
            _bonusEngineClient            = new Mock <IBonusEngineClient>();
            _stakingClient                = new Mock <IStakingClient>();
            _partnerManagementClient      = new Mock <IPartnerManagementClient>();
            _eligibilityEngine            = new Mock <IEligibilityEngineClient>();
            _settingsService              = new Mock <ISettingsService>();
            _operrationHistoryServiceMock = new Mock <IOperationsHistoryClient>();

            _mapper = new MapperConfiguration(cfg => cfg.AddProfile <AutoMapperProfile>()).CreateMapper();

            _referralService = new ReferralService(_referralClient.Object,
                                                   _campaignClient.Object,
                                                   _bonusEngineClient.Object,
                                                   _stakingClient.Object,
                                                   _partnerManagementClient.Object,
                                                   _eligibilityEngine.Object,
                                                   _settingsService.Object,
                                                   _operrationHistoryServiceMock.Object,
                                                   LogFactory.Create(),
                                                   _mapper);
        }
        public When_Employer_Consent_Is_Submitted_Successfully()
        {
            var opportunityService = Substitute.For <IOpportunityService>();

            var httpContextAccessor = Substitute.For <IHttpContextAccessor>();

            var config = new MapperConfiguration(c => c.AddMaps(typeof(EmployerDtoMapper).Assembly));

            _referralService = Substitute.For <IReferralService>();
            var mapper = new Mapper(config);

            var employerController   = new EmployerController(null, opportunityService, _referralService, mapper);
            var controllerWithClaims = new ClaimsBuilder <EmployerController>(employerController)
                                       .AddStandardUser()
                                       .AddUserName("username")
                                       .Build();

            httpContextAccessor.HttpContext.Returns(controllerWithClaims.HttpContext);

            _result = controllerWithClaims.SaveEmployerConsentAsync(new EmployerConsentViewModel
            {
                OpportunityId = 1
            }).GetAwaiter().GetResult();
        }
 public ReferralController(IReferralService referralService)
 {
     _referralService = referralService;
 }
 public PartnerReferralApiController(IUserService userService, IReferralService referralService)
 {
     this._userService = userService;
     this._referralService = referralService;
 }
Example #24
0
 public ReferralsController(IReferralService referralService)
 {
     _referralService = referralService;
 }
 public AppointmentService(MyDbContext context, IReferralService referralService)
 {
     _dbContext       = context;
     _referralService = referralService;
 }
 public ReferralApiController(IReferralService referralService, IMessagingService messagingService)
 {
     _referralService  = referralService;
     _messagingService = messagingService;
 }
Example #27
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="referralService"></param>
 public ReferralRuleEngine(IReferralService referralService)
 {
     this.referralService = referralService;
 }