public CreditController(UserManager <ApplicationUser> userManager, ICreditService creditService, IProfileService profileService, ILogger <CreditController> logger) { _userManager = userManager; _creditService = creditService; _profileService = profileService; _logger = logger; }
public CreditModule(ICreditService creditService) { _creditService = creditService; GetResourceById = GetCredit; GetResourceAll = GetCredits; }
public CalculationCreditController(ICalculationCreditService iCalculationCreditService, ICreditService iCreditService, IValidationService iValidationService) : base() { calculationCreditService = iCalculationCreditService; creditService = iCreditService; validationService = iValidationService; }
public CalculationCreditController(ICalculationCreditService iCalculationCreditService, ICreditService iCreditService, IValidationService iValidationService) : base() { calculationCreditService = iCalculationCreditService; creditService = iCreditService; validationService = iValidationService; }
public CheckCreditPageViewModel(ICreditService creditService, INavigationService navigationService) { _creditService = creditService; _navigationService = navigationService; EvaluarCommand = new DelegateCommand(OnEvaludar); RegistrarCommand = new DelegateCommand(OnRegistrar, CanRegistrar).ObservesCanExecute(() => EstaAprobado); }
public CreditController(IUserService userService, IRequestService requestService, ICreditService creditService, ICreditPaymentService creditPaymentService, IDateService dateService) : base(userService) { this.requestService = requestService; this.creditService = creditService; this.creditPaymentService = creditPaymentService; this.dateService = dateService; }
public void MakeLogAndApplication(ICreditService credit, List <ILoggerService> loggers) { credit.Type(); foreach (var item in loggers) { item.Log(); } }
public RequestService(IBankAccountDAO bankAccountDao, ICreditService creditService) { _bankAccountDao = bankAccountDao; _creditService = creditService; _creditTypesDao = new CreditTypesDAO(); _messageDao = new MessageDAO(); _requestDao = new RequestDAO(); }
public AdminController(IUserService userService, ICreditTypeService creditTypeService, ICreditService creditService, IDepositTypeService depositTypeService) { this.userService = userService; this.creditTypeService = creditTypeService; this.creditService = creditService; this.depositTypeService = depositTypeService; }
public MainPageViewModel(ICreditService creditService, INavigationService navigationService) { _creditService = creditService; _navigationService = navigationService; EvaluarCommand = new DelegateCommand( async() => await _navigationService.NavigateAsync("CheckCreditPage")); }
public MainServiceFacade(ISelectFilesService selectFilesService, ICreditService creditService, IMessageBoxService messageBoxService, RenameServiceFacade renameServiceFacade) { SelectFilesService = selectFilesService; CreditService = creditService; MessageBoxService = messageBoxService; RenameServices = renameServiceFacade; }
public void GetApplication(ICreditService creditManager, List <ILoggerService> loggerServices) { creditManager.Calculate(); foreach (ILoggerService loggerService in loggerServices) { loggerService.Log(); } }
public RequestController(IRequestService requestService, IDepositTypeService depositTypeService, ICreditTypeService creditTypeService, IUserService userService, ICreditService creditService, IDepositService depositService) : base (userService) { this.requestService = requestService; this.depositTypeService = depositTypeService; this.creditTypeService = creditTypeService; this.creditService = creditService; this.depositService = depositService; }
public CreditsViewModel( ICreditService creditService, IErrorRetryManager errorRetryManager) { CreditService = creditService; ErrorRetryManager = errorRetryManager; Credits = new ObservableCollection <Credit>(); OpenCredit = new DelegateCommand <Credit>(OnOpenCredit); }
public CreditApiController(ICreditService CreditService, IPackageService PackageService, INotificationService NotificationService, ICustomerService CustomerService) { this._CreditService = CreditService; this._NotificationService = NotificationService; this._CustomerService = CustomerService; this._PackageService = PackageService; }
public CreditController( ICommandDispatcher dispatcher, ICreditService creditService, IMapper mapper) { this._dispatcher = dispatcher; this._creditService = creditService; this._mapper = mapper; }
public ReportsController(IClinicianService clinicianService, UserManager <ApplicationUser> userManager, IProfileService profileService, IPrescriptionService prescriptionService, ICreditService creditService, IAppointmentService appointmentService) { _clinicianService = clinicianService; _userManager = userManager; _prescriptionService = prescriptionService; _profileService = profileService; _creditService = creditService; _appointmentService = appointmentService; }
public CreditController(IMapper mapper, IUriService uriService, IIdentityService identityService, IBudgetService budgetService, ICreditService creditService, ICreditPaymentService creditPaymentService) { _mapper = mapper; _uriService = uriService; _identityService = identityService; _budgetService = budgetService; _creditService = creditService; _creditPaymentService = creditPaymentService; }
//Method injection public void RecourseToLoan(ICreditService creditService, List <ILoggerService> loggerServices) { //BaÅŸvuran bilgilerini deÄŸerlendirme // creditService.Calculate(); foreach (var loggerService in loggerServices) { loggerService.Log(); } }
public BalanceReportService( ICreditService creditService, IBalanceService balanceService, IAssetSettingsService assetSettingsService, IQuoteService quoteService) { _creditService = creditService; _balanceService = balanceService; _assetSettingsService = assetSettingsService; _quoteService = quoteService; }
//başvuru servisini aynı zamanda loglamak istiyorsak //sadece interfaceini veriyoruz. (ILoggerService) //Methot injection //burada dependency injection yapıyoruz. //bu methodun hangi kredi türü için başvuru yapacağını ve nasıl loglanacağını enjekte ediyoruz. //public void CreditApplication(ICreditService creditService, ILoggerService loggerService) //eğer loglama için birden fazla servis kullanacaksak List of ile getireceğiz public void CreditApplication(ICreditService creditService, List <ILoggerService> loggerServices) { //Kredi Başvuru bilgileri değerlendirme creditService.Calculate(); //Seçilen Loglama servislerine loglama foreach (var loggerService in loggerServices) { loggerService.Log(); } }
public RequestService(IRequestDAO requestDao, ICreditTypesDAO creditTypesDao, IMessageDAO messageDao, IBankAccountDAO bankAccountDao, ICreditService creditService) { _requestDao = requestDao; _creditTypesDao = creditTypesDao; _messageDao = messageDao; _bankAccountDao = bankAccountDao; _creditService = creditService; }
public XbmcMetadata(IDetectXbmcNfo detectNfo, IDiskProvider diskProvider, IMapCoversToLocal mediaCoverService, ICreditService creditService, IMovieTranslationService movieTranslationsService, Logger logger) { _logger = logger; _mediaCoverService = mediaCoverService; _diskProvider = diskProvider; _detectNfo = detectNfo; _creditService = creditService; _movieTranslationsService = movieTranslationsService; }
public void Apply(ICreditService creditManager, ILoggerService loggerService = null) { //Başcuru bilgileri değerlendirme //... //Yanlış Kullanım //MortgageLoanManager mortgageLoanManager = new MortgageLoanManager(); //mortgageLoanManager.Calculate(); creditManager.Calculate(); if (loggerService != null) { loggerService.Log(); } }
public AppointmentController(IProfileService profileService, UserManager <ApplicationUser> userManager, IAppointmentService appointmentService, IClinicianAvailabilityService clinicianAvailabilityService, ICreditService creditService, IClinicianService clinicianService, IProfileMatchService profileMatchService, IEmailSender emailSender, IProfileBankService profileBankService, IAppointmentRefundService appointmentRefundService, IServiceCostService serviceCostService, IOptions <PayStackSettings> payStackSettings) { _userManager = userManager; _profileService = profileService; _appointmentService = appointmentService; _clinicianAvailabilityService = clinicianAvailabilityService; _creditService = creditService; _clinicianService = clinicianService; _profileMatchService = profileMatchService; _emailSender = emailSender; _profileBankService = profileBankService; _appointmentRefundService = appointmentRefundService; _serviceCostService = serviceCostService; _payStackSettings = payStackSettings.Value; }
public VideoBattleController( IVideoBattleService videoBattleService, IVideoBattleParticipantService videoBattleParticipantService, IVideoBattleVideoService videoBattleVideoService, IVideoBattleVoteService videoBattleVoteService, IVideoBattlePrizeService videoBattlePrizeService, IUserService userService, IWatchedVideoService watchedVideoService, IMediaService pictureService, ISponsorService sponsorService, ITimelineAutoPublisher timelineAutoPublisher, ISettingService settingService, IPaymentProcessingService paymentProcessingService, IFollowService followService, ICreditService creditService, IFormatterService formatterService, IEmailSender emailSender, IMobSocialVideoProcessor videoProcessor, MediaSettings mediaSettings, PaymentSettings paymentSettings, BattleSettings battleSettings, GeneralSettings generalSettings) { _videoBattleService = videoBattleService; _videoBattleParticipantService = videoBattleParticipantService; _videoBattleVideoService = videoBattleVideoService; _videoBattleVoteService = videoBattleVoteService; _videoBattlePrizeService = videoBattlePrizeService; _userService = userService; _watchedVideoService = watchedVideoService; _timelineAutoPublisher = timelineAutoPublisher; _settingService = settingService; _paymentProcessingService = paymentProcessingService; _followService = followService; _creditService = creditService; _paymentSettings = paymentSettings; _battleSettings = battleSettings; _formatterService = formatterService; _emailSender = emailSender; _generalSettings = generalSettings; _videoProcessor = videoProcessor; _sponsorService = sponsorService; _pictureService = pictureService; _mediaSettings = mediaSettings; }
public PaymentController(IUserPaymentMethodService paymentMethodService, IPaymentProcessingService paymentProcessingService, ICryptographyService cryptographyService, IVideoBattleService videoBattleService, ISponsorService sponsorService, ICreditService creditService, PaymentSettings paymentSettings, IPaymentTransactionService paymentTransactionService) { _paymentMethodService = paymentMethodService; _paymentProcessingService = paymentProcessingService; _cryptographyService = cryptographyService; _videoBattleService = videoBattleService; _sponsorService = sponsorService; _creditService = creditService; _paymentSettings = paymentSettings; _paymentTransactionService = paymentTransactionService; }
public PaymentController(IUserPaymentMethodService paymentMethodService, IPaymentProcessingService paymentProcessingService, ICryptographyService cryptographyService, IVideoBattleService videoBattleService, ISponsorService sponsorService, ICreditService creditService, PaymentSettings paymentSettings, IPaymentTransactionService paymentTransactionService) { _paymentMethodService = paymentMethodService; _paymentProcessingService = paymentProcessingService; _cryptographyService = cryptographyService; _videoBattleService = videoBattleService; _sponsorService = sponsorService; _creditService = creditService; _paymentSettings = paymentSettings; _paymentTransactionService = paymentTransactionService; }
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; }
public XbmcMetadata(IBuildFileNames buildFileNames, IDetectXbmcNfo detectNfo, IDiskProvider diskProvider, IMapCoversToLocal mediaCoverService, ICreditService creditService, ITagService tagService, IMovieTranslationService movieTranslationsService, Logger logger) { _buildFileNames = buildFileNames; _logger = logger; _mediaCoverService = mediaCoverService; _diskProvider = diskProvider; _detectNfo = detectNfo; _creditService = creditService; _tagService = tagService; _movieTranslationsService = movieTranslationsService; }
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; }
public SponsorController(ISponsorService sponsorService, IVideoBattleService videoBattleService, IUserService customerService, IMediaService mediaService, IFormatterService formatterService, MediaSettings mediaSettings, IEmailSender emailSender, IVideoBattlePrizeService videoBattlePrizeService, ICreditService creditService) { _sponsorService = sponsorService; _videoBattleService = videoBattleService; _userService = customerService; _mediaService = mediaService; _formatterService = formatterService; _mediaSettings = mediaSettings; _emailSender = emailSender; _videoBattlePrizeService = videoBattlePrizeService; _creditService = creditService; }
public SponsorController(ISponsorService sponsorService, IVideoBattleService videoBattleService, IUserService customerService, IMediaService mediaService, IFormatterService formatterService, MediaSettings mediaSettings, IEmailSender emailSender, IVideoBattlePrizeService videoBattlePrizeService, ICreditService creditService) { _sponsorService = sponsorService; _videoBattleService = videoBattleService; _userService = customerService; _mediaService = mediaService; _formatterService = formatterService; _mediaSettings = mediaSettings; _emailSender = emailSender; _videoBattlePrizeService = videoBattlePrizeService; _creditService = creditService; }
public RefreshMovieService(IProvideMovieInfo movieInfo, IMovieService movieService, IMovieTranslationService movieTranslationService, IAlternativeTitleService titleService, ICreditService creditService, IEventAggregator eventAggregator, IDiskScanService diskScanService, ICheckIfMovieShouldBeRefreshed checkIfMovieShouldBeRefreshed, IConfigService configService, Logger logger) { _movieInfo = movieInfo; _movieService = movieService; _movieTranslationService = movieTranslationService; _titleService = titleService; _creditService = creditService; _eventAggregator = eventAggregator; _diskScanService = diskScanService; _checkIfMovieShouldBeRefreshed = checkIfMovieShouldBeRefreshed; _configService = configService; _logger = logger; }
public StatisticsManager(ICreditService creditService) { this.creditService = creditService; }
public CalculateFineTask(ICreditService creditService) { this.creditService = creditService; }
public SecurityWorkerController(IUserService userService, IRequestService requestService, ICreditService creditService) : base(userService) { this.requestService = requestService; this.creditService = creditService; }
public CalculateFineTask(ICreditService creditService) { this.creditService = creditService; }
public CustomerService(ICompanyRepository companyRepository, ICreditService creditService, ICustomerRepository customerRepository) { this.companyRepository = companyRepository; this.creditService = creditService; this.customerRepository = customerRepository; }
public CustomerService() { companyRepository = new CompanyRepository(); creditService = new CreditService(); customerRepository = new CustomerRepository(); }
public CreditController(ICreditService creditService) { _creditService = creditService; }
public static string GetConsolidatedPrizesString(this VideoBattle battle, List <VideoBattlePrize> allPrizes, int?winnerPosition, ISponsorService sponsorService, ISettingService settingService, IPaymentProcessingService paymentProcessingService, IFormatterService formatterService, ICreditService creditService, BattleSettings battleSettings) { var battleOwnerPrizes = allPrizes.Where(x => !x.IsSponsored && (!winnerPosition.HasValue || x.WinnerPosition == winnerPosition.Value)); var sponsoredPrizes = allPrizes.Where(x => x.IsSponsored && (!winnerPosition.HasValue || x.WinnerPosition == winnerPosition.Value)); var videoBattlePrizes = battleOwnerPrizes as VideoBattlePrize[] ?? battleOwnerPrizes.ToArray(); var totalPrizesAmountFixed = videoBattlePrizes.Where(x => x.PrizeType == BattlePrizeType.FixedAmount).Sum(x => x.PrizeAmount); var totalPrizesAmountPercentage = 0m; if (videoBattlePrizes.Any(x => x.PrizeType == BattlePrizeType.PercentageAmount)) { var contextKeyName = string.Format(CreditContextKeyNames.BattleVote, battle.Id); //get spent credits for battle votes var credits = creditService.GetCredits(contextKeyName, null, CreditTransactionType.Spent); var orderSum = credits.Sum(x => x.CreditCount); var netOrderSum = paymentProcessingService.GetNetAmountAfterPaymentProcessing(orderSum); var totalWinners = videoBattlePrizes.Count(); //total voting amount from percentage totalPrizesAmountPercentage = netOrderSum - totalWinners * netOrderSum * battle.ParticipantPercentagePerVote / 100; } var sponsorships = sponsorService.GetSponsorsGrouped(null, battle.Id, BattleType.Video, SponsorshipStatus.Accepted); var sponsorshipAmount = sponsorships.Sum(x => x.SponsorshipAmount); //amount after payment processing var netSponsorshipAmount = paymentProcessingService.GetNetAmountAfterPaymentProcessing(sponsorshipAmount); var siteOwnerShare = netSponsorshipAmount * battleSettings.SiteOwnerVideoBattleSponsorshipPercentage / 100; //it may be possible that battle host himself is sponsor, he won't be getting commissions for that :) var battleHostAsSponsorAmount = sponsorships.Where(x => x.UserId == battle.ChallengerId).Sum(x => x.SponsorshipAmount); var battleHostShare = (netSponsorshipAmount - battleHostAsSponsorAmount) * battleSettings.BattleHostVideoBattleSponsorshipPercentage / 100; //amount available for winners var winnerPrizePool = netSponsorshipAmount - siteOwnerShare - battleHostShare; if (winnerPosition.HasValue) { winnerPrizePool = PrizeDistributionHelper.GetPrizeDistributionPercentage(winnerPosition.Value, allPrizes.Count(x => !x.IsSponsored), settingService) * winnerPrizePool; } var totalAmount = Math.Round(totalPrizesAmountFixed + totalPrizesAmountPercentage + winnerPrizePool); var totalPrizeString = totalAmount > 0 ? formatterService.FormatCurrency(totalAmount, ApplicationContext.Current.ActiveCurrency) : ""; if (allPrizes.Any(x => x.PrizeType == BattlePrizeType.FixedProduct || x.PrizeType == BattlePrizeType.Other)) { if (!winnerPosition.HasValue) { totalPrizeString += "+"; } else { //now append each product as prize with it's name to the prize string foreach (var prize in videoBattlePrizes.Where(x => x.PrizeType == BattlePrizeType.FixedProduct || x.PrizeType == BattlePrizeType.Other)) { if (prize.PrizeType == BattlePrizeType.FixedProduct) { //todo: do something for fixed product } else { totalPrizeString += (totalPrizeString != "" ? " + " : "") + prize.PrizeOther; } } //and sponsored products foreach (var prize in sponsoredPrizes.Where(x => x.PrizeType == BattlePrizeType.Other)) { totalPrizeString += (totalPrizeString != "" ? " + " : "") + prize.PrizeOther + "*"; } } } return(totalPrizeString); }
public CreditTypeController(ICreditTypeService creditTypeService, IUserService userService, ICreditService creditService) : base(userService) { this.creditTypeService = creditTypeService; this.creditService = creditService; }
public static string GetConsolidatedPrizesString(this VideoBattle battle, List<VideoBattlePrize> allPrizes, int? winnerPosition, ISponsorService sponsorService, ISettingService settingService, IPaymentProcessingService paymentProcessingService, IFormatterService formatterService, ICreditService creditService, BattleSettings battleSettings) { var battleOwnerPrizes = allPrizes.Where(x => !x.IsSponsored && (!winnerPosition.HasValue || x.WinnerPosition == winnerPosition.Value)); var sponsoredPrizes = allPrizes.Where(x => x.IsSponsored && (!winnerPosition.HasValue || x.WinnerPosition == winnerPosition.Value)); var videoBattlePrizes = battleOwnerPrizes as VideoBattlePrize[] ?? battleOwnerPrizes.ToArray(); var totalPrizesAmountFixed = videoBattlePrizes.Where(x => x.PrizeType == BattlePrizeType.FixedAmount).Sum(x => x.PrizeAmount); var totalPrizesAmountPercentage = 0m; if (videoBattlePrizes.Any(x => x.PrizeType == BattlePrizeType.PercentageAmount)) { var contextKeyName = string.Format(CreditContextKeyNames.BattleVote, battle.Id); //get spent credits for battle votes var credits = creditService.GetCredits(contextKeyName, null, CreditTransactionType.Spent); var orderSum = credits.Sum(x => x.CreditCount); var netOrderSum = paymentProcessingService.GetNetAmountAfterPaymentProcessing(orderSum); var totalWinners = videoBattlePrizes.Count(); //total voting amount from percentage totalPrizesAmountPercentage = netOrderSum - totalWinners*netOrderSum*battle.ParticipantPercentagePerVote/100; } var sponsorships = sponsorService.GetSponsorsGrouped(null, battle.Id, BattleType.Video, SponsorshipStatus.Accepted); var sponsorshipAmount = sponsorships.Sum(x => x.SponsorshipAmount); //amount after payment processing var netSponsorshipAmount = paymentProcessingService.GetNetAmountAfterPaymentProcessing(sponsorshipAmount); var siteOwnerShare = netSponsorshipAmount * battleSettings.SiteOwnerVideoBattleSponsorshipPercentage / 100; //it may be possible that battle host himself is sponsor, he won't be getting commissions for that :) var battleHostAsSponsorAmount = sponsorships.Where(x => x.UserId == battle.ChallengerId).Sum(x => x.SponsorshipAmount); var battleHostShare = (netSponsorshipAmount - battleHostAsSponsorAmount) * battleSettings.BattleHostVideoBattleSponsorshipPercentage / 100; //amount available for winners var winnerPrizePool = netSponsorshipAmount - siteOwnerShare - battleHostShare; if (winnerPosition.HasValue) { winnerPrizePool = PrizeDistributionHelper.GetPrizeDistributionPercentage(winnerPosition.Value, allPrizes.Count(x => !x.IsSponsored), settingService) * winnerPrizePool; } var totalAmount = Math.Round(totalPrizesAmountFixed + totalPrizesAmountPercentage + winnerPrizePool); var totalPrizeString = totalAmount > 0 ? formatterService.FormatCurrency(totalAmount, ApplicationContext.Current.ActiveCurrency) : ""; if (allPrizes.Any(x => x.PrizeType == BattlePrizeType.FixedProduct || x.PrizeType == BattlePrizeType.Other)) { if (!winnerPosition.HasValue) totalPrizeString += "+"; else { //now append each product as prize with it's name to the prize string foreach (var prize in videoBattlePrizes.Where(x => x.PrizeType == BattlePrizeType.FixedProduct || x.PrizeType == BattlePrizeType.Other)) { if (prize.PrizeType == BattlePrizeType.FixedProduct) { //todo: do something for fixed product } else { totalPrizeString += (totalPrizeString != "" ? " + " : "") + prize.PrizeOther; } } //and sponsored products foreach (var prize in sponsoredPrizes.Where(x => x.PrizeType == BattlePrizeType.Other)) { totalPrizeString += (totalPrizeString != "" ? " + " : "") + prize.PrizeOther + "*"; } } } return totalPrizeString; }
public CreditController(ICreditService iCreditService) : base() { creditService = iCreditService; }
public CreditManager(ICreditService creditService) { this.creditService = creditService; }
public CreditsController(ICreditService creditService, ICreditHistoryService creditHistorySevice) { _creditService = creditService; _creditHistorySevice = creditHistorySevice; }
public UsersController(IUserService userService, ITransactionService transactionService, ICreditService creditService) { _userService = userService; _transactionService = transactionService; _creditService = creditService; }
public CreditController(ICreditService creditService, ILogService logService, IDataConverter mapper) : base(mapper) { _creditService = creditService; _logService = logService; }