Beispiel #1
0
 public void Setup()
 {
     _mockMediator      = new Mock <IMediator>();
     _plugInsController = new PlugInsController(_mockMediator.Object);
     _simpleResultMock  = new Mock <ISimpleResult>();
     _simpleResultMock.Setup(x => x.IsValid).Returns(() => !_resultDictionary.Any());
     _simpleResultMock.Setup(x => x.ToDictionary()).Returns(() => _resultDictionary);
     _resultDictionary = new Dictionary <string, string>();
     _mockMediator.Setup(x =>
                         x.Send(It.IsAny <UpdateSolutionPluginsCommand>(),
                                It.IsAny <CancellationToken>()))
     .ReturnsAsync(() => _simpleResultMock.Object);
 }
 public void Setup()
 {
     _mockMediator      = new Mock <IMediator>();
     _plugInsController = new PlugInsController(_mockMediator.Object);
 }