public void Setup() { _commandHandlerProvider = MockRepository.GenerateMock <ICommandHandlerProvider>(); _dbSessionManager = MockRepository.GenerateMock <IDbSessionManager>(); _prerequisitesChecker = MockRepository.GenerateMock <IPrerequisitesChecker>(); _bus = new CommandBus(_commandHandlerProvider, _dbSessionManager, _prerequisitesChecker); }
public ViewModelFactory( IViewModelProvider<TViewModel, TArg> viewModelProvider, IViewModelProviderArgumentsProvider argumentsProvider, IPrerequisitesChecker prerequisitesChecker ) { _viewModelProvider = viewModelProvider; _argumentsProvider = argumentsProvider; _prerequisitesChecker = prerequisitesChecker; }
public CommandBus( ICommandHandlerProvider commandHandlerProvider, IDbSessionManager dbSessionManager, IPrerequisitesChecker prerequisitesChecker) { _commandHandlerProvider = commandHandlerProvider; _dbSessionManager = dbSessionManager; _prerequisitesChecker = prerequisitesChecker; }
public void Setup() { _viewModelProvider = MockRepository.GenerateMock <IViewModelProvider <TestViewModel, TestViewModelProviderArgument> >(); _viewModelProviderArgumentsProvider = MockRepository.GenerateMock <IViewModelProviderArgumentsProvider>(); _prerequisitesChecker = MockRepository.GenerateMock <IPrerequisitesChecker>(); _viewModelFactory = new ViewModelFactory <TestViewModel, TestViewModelProviderArgument>( _viewModelProvider, _viewModelProviderArgumentsProvider, _prerequisitesChecker); }
public void Setup() { _viewModelProvider = MockRepository.GenerateMock<IViewModelProvider<TestViewModel, TestViewModelProviderArgument>>(); _viewModelProviderArgumentsProvider = MockRepository.GenerateMock<IViewModelProviderArgumentsProvider>(); _prerequisitesChecker = MockRepository.GenerateMock<IPrerequisitesChecker>(); _viewModelFactory = new ViewModelFactory<TestViewModel, TestViewModelProviderArgument>( _viewModelProvider, _viewModelProviderArgumentsProvider, _prerequisitesChecker ); }