public PortfolioAppFactory()
 {
     AutomapperConfig.SetMappings();
     StockRepository = new StockRepository(dbContext);
     StockHistoryRepository = new StockHistoryRepository(dbContext);
     PortfolioRepository = new PortfolioRepository(dbContext);
     UserRepository = new UserRepository(dbContext);
     TransactionLogRepository = new TransactionLogRepository(dbContext);
 }