public OperationsController(
     IOperationRepo <OperationDto, OperationDtoFilter> operationRepo,
     IAccountRepo <AccountDto, AccountDtoFilter> accountRepo,
     IOperationTypeRepo <OperationTypeDto> operationTypeRepo
     )
 {
     _operationRepo     = operationRepo;
     _accountRepo       = accountRepo;
     _operationTypeRepo = operationTypeRepo;
 }
Esempio n. 2
0
        public CalculationsController(IOperationRepo oRepo,
                                      ILogger <CalculationsController> logger)
        {
            //// ASP.NET Core: Создание серверных служб для мобильных приложений
            //// https://habr.com/company/microsoft/blog/319482/
            //// Внедрение зависимостей в ASP.NET Core
            //// https://docs.microsoft.com/ru-ru/aspnet/core/fundamentals/dependency-injection
            this._oRepo = oRepo;

            //// dotNET.today - Логирование
            //// http://dotnet.today/ru/aspnet5-vnext/fundamentals/logging.html
            this._logger = logger;
        }
Esempio n. 3
0
 public Supervisor(IMapper mapper, ICustomerRepo ICustomerRepo,
                   IAccountRepo IAccountRepo, ICurrencyRepo ICurrencyRepo,
                   IAccountTypeRepo IAccountTypeRepo, ICurrencyRatioRepo ICurrencyRatioRepo,
                   IOperationRepo IOperationRepo, ITransactionRepo ITransactionRepo
                   )
 {
     _mapper             = mapper;
     _ICustomerRepo      = ICustomerRepo;
     _IAccountRepo       = IAccountRepo;
     _ICurrencyRepo      = ICurrencyRepo;
     _IAccountTypeRepo   = IAccountTypeRepo;
     _ICurrencyRatioRepo = ICurrencyRatioRepo;
     _IOperationRepo     = IOperationRepo;
     _ITransactionRepo   = ITransactionRepo;
 }