コード例 #1
0
 public void Setup()
 {
     _commandHandlerFinder = MockRepository.GenerateMock <ICommandHandlerFinder>();
     _cache    = MockRepository.GenerateMock <IObjectLookupCache>();
     _provider = new CommandHandlerProvider(_commandHandlerFinder, _cache);
 }
コード例 #2
0
 public CommandHandlerProvider(ICommandHandlerFinder commandHandlerFinder, IObjectLookupCache cache)
 {
     _commandHandlerFinder = commandHandlerFinder;
     _cache = cache;
 }
コード例 #3
0
 public CommandHandlerService(ICommandHandlerFinder commandHandlerFinder)
 {
     _commandHandlerFinder = commandHandlerFinder;
 }
コード例 #4
0
 public void Setup()
 {
     _commandHandlerFinder = MockRepository.GenerateMock<ICommandHandlerFinder>();
     _cache = MockRepository.GenerateMock<IObjectLookupCache>();
     _provider = new CommandHandlerProvider( _commandHandlerFinder, _cache );
 }
コード例 #5
0
 public CommandHandlerProvider(ICommandHandlerFinder commandHandlerFinder, IServiceProvider serviceProvider)
 {
     _commandHandlerFinder = commandHandlerFinder;
     _serviceProvider      = serviceProvider;
 }