public CurrencyViewModel(Currency currency, ICurrencyManager currencyManager, IMessenger messanger) { Currency = currency; currencyManager.RatesUpdatedEvent += OnRatestChanged; messanger.Register <AmountChangedMessage>(this, OnAmountChanged); _rate = currencyManager.Calculate(currency.Ticker); Value = _rate * _amount; }