Пример #1
0
 public OperatorController(IUserContext userContext, IClientsService clientsService, IClientProfileService clientProfileService)
     : base(userContext)
 {
     Contract.Requires<ArgumentNullException>(clientsService.IsNotNull());
     Contract.Requires<ArgumentNullException>(clientProfileService.IsNotNull());
     this.clientsService = clientsService;
 }
Пример #2
0
 public KycStatusChangeJob(ISubscriber <IReadOnlyList <PersonalDataUpdateMessage> > personalDataUpdateSubscriber,
                           IPersonalDataServiceGrpc personalDataServiceGrpc,
                           ILogger <KycStatusChangeJob> logger, IClientProfileService clientProfileService)
 {
     _personalDataServiceGrpc = personalDataServiceGrpc;
     _logger = logger;
     _clientProfileService = clientProfileService;
     personalDataUpdateSubscriber.Subscribe(HandleKycStatusUpdate);
 }
 public ClientProfileController(IClientService clientService, IClientProfileService clientProfileService, IHttpContextAccessor httpContextAccessor, UserManager <IdentityUser> _userManager,
                                SignInManager <IdentityUser> _signInManager, IOptions <AppSettings> appSettings, IMapper mapper)
 {
     this._userManager     = _userManager;
     this._signInManager   = _signInManager;
     _appSettings          = appSettings.Value;
     _httpContextAccessor  = httpContextAccessor;
     _clientProfileService = clientProfileService;
     _mapper        = mapper;
     _clientService = clientService;
 }
Пример #4
0
 public ClientService(IMapper mapper, IHttpContextAccessor httpContextAccessor, UserManager <IdentityUser> _userManager,
                      SignInManager <IdentityUser> _signInManager, IOptions <AppSettings> appSettings, IClientProfileService clientProfileService,
                      ApplicationDbContext dbContext)
 {
     this._userManager    = _userManager;
     this._signInManager  = _signInManager;
     _appSettings         = appSettings.Value;
     _httpContextAccessor = httpContextAccessor;
     _dbContext           = dbContext;
     _mapper = mapper;
     _userId = httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
     _clientProfileService = clientProfileService;
 }
Пример #5
0
        public ClientProfileController(
            IClientProfileService clientProfileService,
            IClientProfileManager clientProfileManager,
            IUserContext userContext,
            ICreditManager creditManager,
            IPaymentService paymentService)
            : base(userContext)
        {
            Contract.Requires <ArgumentNullException>(clientProfileService.IsNotNull());
            Contract.Requires <ArgumentNullException>(clientProfileManager.IsNotNull());

            this.clientProfileService = clientProfileService;
            this.clientProfileManager = clientProfileManager;
            this.creditManager        = creditManager;
            this.paymentService       = paymentService;
        }
        public ClientProfileController(
            IClientProfileService clientProfileService,
            IUserService userService,
            IPhotoService photoService)
        {
            _clientProfileService = clientProfileService;
            _userService          = userService;
            _photoService         = photoService;

            _mapper = new Mapper(new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <ClientProfileDto, ClientProfileViewModel>();
                cfg.CreateMap <PhotoDto, PhotoViewModel>();
                cfg.CreateMap <LikeDto, LikeViewModel>();
            }));
        }
        public ClientProfileController(
            IClientProfileService clientProfileService,
            IClientProfileManager clientProfileManager,
            IUserContext userContext,
            ICreditManager creditManager,
            IPaymentService paymentService)
            : base(userContext)
        {
            Contract.Requires<ArgumentNullException>(clientProfileService.IsNotNull());
            Contract.Requires<ArgumentNullException>(clientProfileManager.IsNotNull());

            this.clientProfileService = clientProfileService;
            this.clientProfileManager = clientProfileManager;
            this.creditManager = creditManager;
            this.paymentService = paymentService;
        }
        public ClientProfileManager(
            IClientProfileService clientProfileService, 
            ICitiesService citiesService, 
            ICountriesService countriesService,
            IRepository<Property> propertyRepository,
            IObligationRepository obligationRepository)
        {
            Contract.Requires<ArgumentNullException>(clientProfileService.IsNotNull());
            Contract.Requires<ArgumentNullException>(citiesService.IsNotNull());
            Contract.Requires<ArgumentNullException>(countriesService.IsNotNull());

            this.clientProfileService = clientProfileService;
            this.citiesService = citiesService;
            this.countriesService = countriesService;
            this.propertyRepository = propertyRepository;
            this.obligationRepository = obligationRepository;
        }
Пример #9
0
        public ClientProfileManager(
            IClientProfileService clientProfileService,
            ICitiesService citiesService,
            ICountriesService countriesService,
            IRepository <Property> propertyRepository,
            IObligationRepository obligationRepository)
        {
            Contract.Requires <ArgumentNullException>(clientProfileService.IsNotNull());
            Contract.Requires <ArgumentNullException>(citiesService.IsNotNull());
            Contract.Requires <ArgumentNullException>(countriesService.IsNotNull());

            this.clientProfileService = clientProfileService;
            this.citiesService        = citiesService;
            this.countriesService     = countriesService;
            this.propertyRepository   = propertyRepository;
            this.obligationRepository = obligationRepository;
        }
Пример #10
0
 public CreditController(
     ICreditService creditService,
     IUserContext userContext,
     IClientProfileService clientProfileService,
     IUserService userService,
     ILoanRequestsService loanRequestsService,
     ICreditManager creditManager, IMailService mailService, IEmailTemplatesService emailTemplatesService)
     : base(userContext)
 {
     Contract.Requires <ArgumentNullException>(creditService.IsNotNull());
     this._creditService        = creditService;
     this._clientProfileService = clientProfileService;
     this.userService           = userService;
     this.loanRequestsService   = loanRequestsService;
     this.creditManager         = creditManager;
     this.mailService           = mailService;
     this.emailTemplatesService = emailTemplatesService;
 }
Пример #11
0
 public CreditController(
     ICreditService creditService, 
     IUserContext userContext, 
     IClientProfileService clientProfileService, 
     IUserService userService, 
     ILoanRequestsService loanRequestsService, 
     ICreditManager creditManager, IMailService mailService, IEmailTemplatesService emailTemplatesService)
     : base(userContext)
 {
     Contract.Requires<ArgumentNullException>(creditService.IsNotNull());
     this._creditService = creditService;
     this._clientProfileService = clientProfileService;
     this.userService = userService;
     this.loanRequestsService = loanRequestsService;
     this.creditManager = creditManager;
     this.mailService = mailService;
     this.emailTemplatesService = emailTemplatesService;
 }
Пример #12
0
 public ProfileController(ILayoutService layoutService,
                          IClientProfileService clientProfileService,
                          IPostService postService,
                          IPostTypeService postTypeService,
                          IPostVoteDetailService postVoteDetailService,
                          ICommentService commentOfPost,
                          ICommentVoteDetailService commentVoteDetailService,
                          IClientFriendService friendService
                          )
     : base(layoutService)
 {
     _clientProfileService     = clientProfileService;
     _postService              = postService;
     _postTypeService          = postTypeService;
     _postVoteDetailService    = postVoteDetailService;
     _commentOfPost            = commentOfPost;
     _commentVoteDetailService = commentVoteDetailService;
     _friendService            = friendService;
 }
Пример #13
0
 public AccountController(IClientProfileService servC)
 {
     clientSevice = servC;
 }
Пример #14
0
 public PhotoController(IClientProfileService servCP, IPhotoService servP, ICommentService servC)
 {
     clientService  = servCP;
     photoService   = servP;
     commentService = servC;
 }
 public ClientProfileApiController(IClientProfileService clientProfileService)
 {
     _clientProfileService = clientProfileService;
 }
Пример #16
0
 public AdminController(IClientProfileService servC, IPhotoService servP)
 {
     clientService = servC;
     photoService  = servP;
 }
 public ClientProfileController(ApplicationProperties properties, IClientProfileService clientProfileService) : base(properties)
 {
     this.clientProfileService = clientProfileService;
 }
Пример #18
0
 public OperatorController(IUserContext userContext, IClientsService clientsService, IClientProfileService clientProfileService)
     : base(userContext)
 {
     Contract.Requires <ArgumentNullException>(clientsService.IsNotNull());
     Contract.Requires <ArgumentNullException>(clientProfileService.IsNotNull());
     this.clientsService = clientsService;
 }