Ejemplo n.º 1
0
        public void Setup()
        {
            tradeRepo = new TradeInstructionRepository();
            helper    = new TradeInstructionHelper();

            helper.SeedBasicTrades(tradeRepo);
            settlementManager = new SettlementInstructionManager(tradeRepo.List);
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (TradeRepository != null)
            {
                TradeRepository.Dispose();
                TradeRepository = null;
            }
            if (SettlementManager != null)
            {
                SettlementManager.Dispose();
                SettlementManager = null;
            }

            GC.Collect(0);
        }
Ejemplo n.º 3
0
 public Service(ITradeInstructionRepository tradeRepository, ISettlementInstructionManager settlementManager, ILogger <Service> logger)
 {
     TradeRepository   = tradeRepository;
     SettlementManager = settlementManager;
     _logger           = logger;
 }