public HealthCheckService(IGrpcClientService grpcClientService, IOptions <HealthCheckOptions> healthCheckOptions, IOptions <GrpcOptions> grpcOptions, ILogger <HealthCheckService> logger) { _grpcClientService = grpcClientService; _healthCheckOptions = healthCheckOptions.Value; _grpcOptions = grpcOptions.Value; _logger = logger; }
public ApplicationWatcherService(IRegistryService registryService, IProcessService processService, IFileWrapperService fileWrapperService, IGrpcClientService grpcClient, IOptions <RegistryOptions> registryOptions, IOptions <HealthCheckOptions> healthCheckOptions, IOptions <GrpcOptions> grpcOptions, ILogger <ApplicationWatcherService> logger) { _registryService = registryService; _processService = processService; _fileWrapperService = fileWrapperService; _grpcClient = grpcClient; _registryOptions = registryOptions.Value; _healthCheckOptions = healthCheckOptions.Value; _grpcOptions = grpcOptions.Value; _logger = logger; }
private ApplicationWatcherService CreateApplicationWatcherServiceForHealthCheck(IOptions <GrpcOptions> grpcOptions, IOptions <HealthCheckOptions> healthCheckOptions, IGrpcClientService grpcClientService) { return(new ApplicationWatcherService(Mock.Of <IRegistryService>(), Mock.Of <IProcessService>(), Mock.Of <IFileWrapperService>(), grpcClientService, Mock.Of <IOptions <RegistryOptions> >(), healthCheckOptions, grpcOptions, Mock.Of <ILogger <ApplicationWatcherService> >())); }