Exemplo n.º 1
0
 public FakeLdapService(IStockGameConfiguration gameStockConfig)
 {
     _gameStockConfig = gameStockConfig;
 }
Exemplo n.º 2
0
        private void Init()
        {
            _userProfileDAO = new GenericDAO<UserProfile>();
               _gameStockConfig = new StockGameConfiguration();
               _orderDAO = new GenericDAO<Order>();
               _instrumentDAO = new GenericDAO<Instrument>();
               _instrumentHistoryDAO = new GenericDAO<InstrumentHistory>();
               _alertDAO = new GenericDAO<Alert>();
               _instrumentRepository = new InstrumentRepository(_instrumentDAO, _instrumentHistoryDAO);
               _orderRepository = new OrderRepository(_orderDAO,_instrumentDAO);
               _alertRepository = new AlertRepository(_alertDAO, _instrumentDAO);
               _ldapService = new FakeLdapService(_gameStockConfig);
               _ldapService.Init();

               _notificationtDAO = new GenericDAO<Notification>();
               _notificationRepository = new NotificationRepository(_notificationtDAO);
               _notificationManager = new NotificationManager(_notificationRepository);
               _alertManager = new AlertManager(_notificationManager, _alertRepository);
               _userManager = new UserManager(_userProfileDAO, _ldapService);

               _alertService = new AlertService(_orderRepository, _instrumentRepository, _alertRepository, _alertManager);
        }
Exemplo n.º 3
0
 public LdapService(IStockGameConfiguration stockGameConfiguration)
 {
     _stockGameConfiguration = stockGameConfiguration;
 }