public RfqDetails(CurrencyPair currencyPair, decimal notional, Guid quoteId, IRfqServiceGateway rfqServiceGateway) { _currencyPair = currencyPair; _notional = notional; _quoteId = quoteId; _rfqServiceGateway = rfqServiceGateway; _rate = new Field <decimal?>(); _quoteStatus = QuoteStatus.New; }
public RfqScreen( IRouter <RfqScreen> router, IRfqServiceGateway rfqServiceGateway, Func <CurrencyPair, decimal, Guid, RfqDetails> rfqDetailsFactory // container provided factory function ) { _router = router; _rfqServiceGateway = rfqServiceGateway; _rfqDetailsFactory = rfqDetailsFactory; _readOnlyRfqs = new ReadOnlyCollection <RfqDetails>(_rfqs); AddDisposable(_rfqEventsDisposable); }