public void Setup() { IConfigurationService service = _testBase.SetupConfigurationService(); ISqlExecutor _executor = _testBase.SetupSqlQueryExecutor(); _dataServices = new DataServiceImplementation(_executor); _carveBarViewModel = new KarveToolBarViewModel(_dataServices, _eventManger, _careKeerp, _regionManager, service); }
private void InitToolBar() { _carveBarViewModel = new KarveToolBarViewModel(_dataServices.Object, _eventManager.Object, _careKeeperService.Object, _regionManager.Object, _dialogService.Object, _configurationService.Object ); _dialogService.Setup(x => x.ShowErrorMessage(It.IsAny <string>())).Callback(() => { _messageErrorCalled = true; }); }
public ToolBarCommand(KarveToolBarViewModel vm) { this.viewModel = vm; }