コード例 #1
0
        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);
        }
コード例 #2
0
 public ImageFinderView(IImageFinderViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }