public void TestInit() { _searchCommandFactory = Mock.Create<ISearchCommandFactory>(Behavior.Loose); _searchUtils = Mock.Create<ISearchUtils>(Behavior.Loose); _logger = Mock.Create<ILogger>(Behavior.Loose); _filteringUtils = Mock.Create<IFilteringUtils>(Behavior.Loose); _filterRepository = Mock.Create<IFilterRepository>(Behavior.Loose); _layoutRepository = Mock.Create<ILayoutRepository>(Behavior.Loose); _searchResultFormatter = Mock.Create<ISearchResultFormatter>(Behavior.Loose); _searchResultFormatterCollection = new SearchResultFormatterCollection(new[] { _searchResultFormatter }); _detailsCommandFactory = Mock.Create<IDetailsCommandFactory>(Behavior.Loose); _dtm = Mock.Create<IDynamicTypeManager>(Behavior.Loose); }
public FilterMetadataFactory( IProcessMetadataRepository processRepository, IFilterDescriptorFactory filterDescriptorFactory, IFilteringUtils filteringUtils) { if (processRepository == null) throw new ArgumentNullException("processRepository"); if (filterDescriptorFactory == null) throw new ArgumentNullException("filterDescriptorFactory"); if (filteringUtils == null) throw new ArgumentNullException("filteringUtils"); _processMetadataRepository = processRepository; _filterDescriptorFactory = filterDescriptorFactory; _filteringUtils = filteringUtils; }
public ProcessController( ISearchCommandFactory searchCommandFactory, ISearchUtils searchUtils, IDetailsCommandFactory detailsCommandFactory, ILogger logger, IFilteringUtils filteringUtils, IFilterRepository filterRepository, ILayoutRepository layoutRepository, SearchResultFormatterCollection searchResultFormatters) { if (searchCommandFactory == null) throw new ArgumentNullException("searchCommandFactory"); if (searchUtils == null) throw new ArgumentNullException("searchUtils"); if (detailsCommandFactory == null) throw new ArgumentNullException("detailsCommandFactory"); if (logger == null) throw new ArgumentNullException("logger"); if (filteringUtils == null) throw new ArgumentNullException("filteringUtils"); if (filterRepository == null) throw new ArgumentNullException("filterRepository"); if (layoutRepository == null) throw new ArgumentNullException("layoutRepository"); if (searchResultFormatters == null) throw new ArgumentNullException("searchResultFormatters"); _searchCommandFactory = searchCommandFactory; _searchUtils = searchUtils; _detailsCommandFactory = detailsCommandFactory; _logger = logger; _filteringUtils = filteringUtils; _filterRepository = filterRepository; _layoutRepository = layoutRepository; _searchResultFormatters = searchResultFormatters; }