public void Setup() { _commandHandlerFinder = MockRepository.GenerateMock <ICommandHandlerFinder>(); _cache = MockRepository.GenerateMock <IObjectLookupCache>(); _provider = new CommandHandlerProvider(_commandHandlerFinder, _cache); }
public CommandHandlerProvider(ICommandHandlerFinder commandHandlerFinder, IObjectLookupCache cache) { _commandHandlerFinder = commandHandlerFinder; _cache = cache; }
public CommandHandlerService(ICommandHandlerFinder commandHandlerFinder) { _commandHandlerFinder = commandHandlerFinder; }
public void Setup() { _commandHandlerFinder = MockRepository.GenerateMock<ICommandHandlerFinder>(); _cache = MockRepository.GenerateMock<IObjectLookupCache>(); _provider = new CommandHandlerProvider( _commandHandlerFinder, _cache ); }
public CommandHandlerProvider(ICommandHandlerFinder commandHandlerFinder, IServiceProvider serviceProvider) { _commandHandlerFinder = commandHandlerFinder; _serviceProvider = serviceProvider; }