Exemple #1
0
        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;
		}
Exemple #3
0
 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 );
 }