Exemplo n.º 1
0
 public AccountApiController(
     ApplicationUserManager userManager,
     ApplicationDbContext dbContext,
     IUserPortfolioRepo custPortfolioRepo,
     IUserRepo userRepo,
     ICacheUserData cacheUserData)
     : base(userManager)
 {
     _dbContext         = dbContext;
     _userRepo          = userRepo;
     _custPortfolioRepo = custPortfolioRepo;
     _cacheUserData     = cacheUserData;
 }
Exemplo n.º 2
0
 public InvBalanceRepo(
     ApplicationDbContext db,
     IUserPortfolioSharesRepo userPortfolioSharesRepo,
     IGzTransactionRepo gzTransactionRepo,
     IUserPortfolioRepo custPortfolioRepo,
     IConfRepo confRepo,
     IUserRepo userRepo)
 {
     this.db = db;
     this.userPortfolioSharesRepo = userPortfolioSharesRepo;
     this.gzTransactionRepo       = gzTransactionRepo;
     this.confRepo = confRepo;
     this.userRepo = userRepo;
 }
Exemplo n.º 3
0
 public InvestmentsApiController(
     ApplicationDbContext inDbContext,
     IInvBalanceRepo inInvBalanceRepo,
     IGzTransactionRepo inGzTransactionRepo,
     IUserPortfolioRepo inUserPortfolioRepo,
     IUserRepo inUserRepo,
     IMapper inMapper,
     ApplicationUserManager inUserManager) : base(inUserManager)
 {
     this.dbContext         = inDbContext;
     this.invBalanceRepo    = inInvBalanceRepo;
     this.gzTransactionRepo = inGzTransactionRepo;
     this.userPortfolioRepo = inUserPortfolioRepo;
     this.userRepo          = inUserRepo;
     this.mapper            = inMapper;
 }
Exemplo n.º 4
0
 public CacheUserData(IInvBalanceRepo invBalanceRepo, IUserPortfolioRepo custPortfolioRepo)
 {
     telemetry              = new TelemetryClient();
     this.invBalanceRepo    = invBalanceRepo;
     this.custPortfolioRepo = custPortfolioRepo;
 }
Exemplo n.º 5
0
 public UserPortfolioController(IUserPortfolioRepo repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }