public void Setup()
        {
            _serviceProviderMock = new Mock <IServiceProvider>();
            _eventAggregatorMock = new Mock <IEventAggregator>();
            _eventAggregatorMock.Setup(_ => _.Subscribe(It.IsAny <Action <ProcessingState> >())).Callback <Action <ProcessingState> >(_ => _(ProcessingState.Started));

            _fixture = new ImageFinderViewModel(_serviceProviderMock.Object, _eventAggregatorMock.Object);
        }
 public ImageFinderView(IImageFinderViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }