예제 #1
0
        public RedcacheLoggerServiceTests()
        {
            _redcache = Substitute.For <IRedcache>();
            _logger   = Substitute.For <MockLogger>();
            _options  = Substitute.For <IOptions <LoggingOptions> >();
            _options.Value.Returns(new LoggingOptions());

            _redfishLogger     = new RedfishLogger(_logger, _options);
            _redcacheDecorator = new RedcacheLoggerService(_redcache, _redfishLogger);
        }
예제 #2
0
 public RedcacheLoggerService(IRedcache redcache, IRedfishLogger logger)
 {
     _redqueue = redcache;
     _logger   = logger;
 }
예제 #3
0
 public WeatherForecastController(IRedcache redcache, IRedqueue redqueue)
 {
     _redcache = redcache;
     _redqueue = redqueue;
 }