I have looked at the sample "Simple MDI with Screen Collections". I have added functionality to use the unity IoC container in the sample registered like in the "customizing bootstrapper sample". Thus my implementation of ShellViewModel.OpenTab
public void OpenTab()
var tab = IoC.Get<TabViewModel>();
tab.DisplayName = "Tab " + count++;
Now I would like to write a unit test for this, I have added the following test method:
public void TestMethod1()
ShellViewModel shellViewModel = new ShellViewModel();
This of course failes on the call to IoC.Get. How should I solve this? Is it even meant that I should use the IoC like I do in the OpenTab method?