public void TestInitialize()
 {
     EventAggregator = Substitute.For<IEventAggregator>();
     ServiceControl = Substitute.For<IServiceControl>();
     MessageStore = new Dictionary<Queue, List<MessageInfo>>();
     QueueManager = new FakeQueueManager(MessageStore);
     WindowManager = Substitute.For<IWindowManagerEx>();
     SearchBar = Substitute.For<ISearchBarViewModel>();
     StatusBarManager = Substitute.For<IStatusBarManager>();
     View = Substitute.For<IMessageListView>();
     MessageList = new MessageListViewModel(EventAggregator, WindowManager, ServiceControl,
                                            QueueManager, SearchBar,
                                            Substitute.For<IErrorHeaderViewModel>(),
                                            Substitute.For<IGeneralHeaderViewModel>(),
                                            Substitute.For<IClipboard>(),
                                            StatusBarManager);
     MessageList.AttachView(View, null);
 }
 public void TestInitialize()
 {
     EventAggregator = Substitute.For<IEventAggregator>();
     ServiceControl = Substitute.For<IServiceControl>();
     SearchBar = Substitute.For<ISearchBarViewModel>();
     View = Substitute.For<IMessageListView>();
     MessageList = new MessageListViewModel(EventAggregator,
                                            ServiceControl,
                                            SearchBar,
                                            Substitute.For<IErrorHeaderViewModel>(),
                                            Substitute.For<IGeneralHeaderViewModel>(),
                                            Substitute.For<IClipboard>());
     MessageList.AttachView(View, null);
 }