public PaymentPlanRepository(ApplicationDbContext context, ILogger <PaymentPlanRepository> logger,
                              ITransactionRepositoryAsync transactionRepositoryAsync) : base(context)
 {
     _plans  = context.Set <PaymentPlan>();
     _logger = logger;
     _transactionRepositoryAsync = transactionRepositoryAsync;
 }
 public PaymentController(ILogger <PaymentController> logger, IAccountRepositoryAsync accountRepo, ITransactionRepositoryAsync tranRepo, IMapper mapper)
 {
     _logger      = logger;
     _accountRepo = accountRepo;
     _transRepo   = tranRepo;
     _mapper      = mapper;
 }
 public AccountBalanceService(ILogger logger, int accountId, IMapper mapper, IAccountRepositoryAsync accountRepo, ITransactionRepositoryAsync transRepo)
 {
     this._logger      = logger;
     this._accountId   = accountId;
     this._mapper      = mapper;
     this._accountRepo = accountRepo;
     this._transRepo   = transRepo;
 }
Beispiel #4
0
 public TransactionUpdaterService(ILogger logger, IMapper mapper, int accountId, int transactionId, IAccountRepositoryAsync accountRepo, ITransactionRepositoryAsync transRepo, TransactionStatusEnum status, string server500Error, string closedComment = null)
 {
     this._logger         = logger;
     this._mapper         = mapper;
     this._accountId      = accountId;
     this._transactionId  = transactionId;
     this._accountRepo    = accountRepo;
     this._transRepo      = transRepo;
     this._status         = status;
     this._server500Error = server500Error;
     this._closedComment  = closedComment;
 }
 public TransactionCreatorService(ILogger logger, IMapper mapper, int accountId, decimal amount, DateTime date, IAccountRepositoryAsync accountRepo, ITransactionRepositoryAsync transRepo, TransactionStatusEnum status, TransactionTypeEnum type, string server500Error)
 {
     this._logger         = logger;
     this._mapper         = mapper;
     this._accountId      = accountId;
     this._amount         = amount;
     this._date           = date;
     this._accountRepo    = accountRepo;
     this._transRepo      = transRepo;
     this._status         = status;
     this._type           = type;
     this._server500Error = server500Error;
 }
Beispiel #6
0
        public InitiateTransactionCommandValidator(ITransactionRepositoryAsync transactionRepository)
        {
            this.transactionRepository = transactionRepository;

            RuleFor(p => p.Title)
            .NotEmpty().WithMessage("{PropertyName} is required.")
            .NotNull()
            .MaximumLength(50).WithMessage("{PropertyName} must not exceed 50 characters.");


            RuleFor(p => p.Amount)
            .NotEmpty().WithMessage("{PropertyName} is required.")
            .NotNull()
            .MaximumLength(50).WithMessage("{PropertyName} must not exceed 50 characters.");
        }
Beispiel #7
0
 public GetAllTransactionsQueryHandler(ITransactionRepositoryAsync transactionRepositoryAsync, IMapper mapper)
 {
     _transactionRepositoryAsync = transactionRepositoryAsync;
     _mapper = mapper;
 }
Beispiel #8
0
 public PayoutCronJob(IPaymentPlanRepository planRepository, ITransactionRepositoryAsync transactionRepositoryAsync)
 {
     _planRepository             = planRepository;
     _transactionRepositoryAsync = transactionRepositoryAsync;
 }
 public CompleteTransactionCommandHandler(ITransactionRepositoryAsync transactionRepository)
 {
     _transactionRepository = transactionRepository;
 }
Beispiel #10
0
 public InitiateTransactionCommandHandler(ITransactionRepositoryAsync transactionRepository, IMapper mapper)
 {
     _transactionRepository = transactionRepository;
     _mapper = mapper;
 }