public static void SetupTests(TestContext tc) { SetupTests("specs"); _logger = CreateLogger(); _specificationsService = CreateSpecificationService(); _userProfileProvider = CreateUserProfileProvider(); _specificationIndexerService = CreateSpecificationIndexerService(); }
public OnReIndexSpecification( ILogger logger, ISpecificationIndexingService specificationIndexing, IMessengerService messengerService, IUserProfileProvider userProfileProvider, bool useAzureStorage = false) : base(logger, messengerService, FunctionName, useAzureStorage, userProfileProvider, specificationIndexing) { Guard.ArgumentNotNull(logger, nameof(logger)); Guard.ArgumentNotNull(specificationIndexing, nameof(specificationIndexing)); _logger = logger; _specificationIndexing = specificationIndexing; }
public SpecificationsController( ISpecificationsService specService, ISpecificationsSearchService specSearchService, IWebHostEnvironment hostingEnvironment, ISpecificationsReportService specificationsReportService, ISpecificationIndexingService specificationIndexingService) { Guard.ArgumentNotNull(specService, nameof(specService)); Guard.ArgumentNotNull(specSearchService, nameof(specSearchService)); Guard.ArgumentNotNull(hostingEnvironment, nameof(hostingEnvironment)); Guard.ArgumentNotNull(specificationsReportService, nameof(specificationsReportService)); Guard.ArgumentNotNull(specificationIndexingService, nameof(specificationIndexingService)); _specService = specService; _specSearchService = specSearchService; _hostingEnvironment = hostingEnvironment; _specificationsReportService = specificationsReportService; _specificationIndexingService = specificationIndexingService; }