I am newbie and trying to learn couple of things at same time in .Net world (e.g. PRISM, DI, WPF, etc.)
I am trying to learn by creating an application which similar to Stock Trader RI using WPF.
I have created all required classes of PositionSummary in Position module. The issue is that when I have a constructor like this:
public PositionSummaryViewModel(IEventAggregator eventAggregator, IObservablePosition observablePosition)
// Doesn't work
My view is not injected. But if I have a constructor like this where I remove the last parameter in the constructor it works fine.
public PositionSummaryViewModel(IEventAggregator eventAggregator)
It looks as DI container is not able to instantiate the IObersvablePosition object...
The thing is how can I debug to figure out the exact problem? I don't see any exception being thrown... It will be great if someone can explain how should I debug so, that I understand why DI container is failing and how can I fix it...
Any help or guidance will be appreciated.