Beispiel #1
0
 public PlaceholdersTests()
 {
     _accessor     = new Mock <IHttpContextAccessor>();
     _repo         = new Mock <IRequestScopedDataRepository>();
     _finder       = new Mock <IBaseUrlFinder>();
     _placeholders = new Placeholders(_finder.Object, _repo.Object, _accessor.Object);
 }
        public ConfigAwarePlaceholdersTests()
        {
            var configurationBuilder = new ConfigurationBuilder();

            configurationBuilder.AddJsonFile("appsettings.json");
            var configuration = configurationBuilder.Build();

            _basePlaceholders = new Mock <IPlaceholders>();
            _placeholders     = new ConfigAwarePlaceholders(configuration, _basePlaceholders.Object);
        }
Beispiel #3
0
 public HttpResponseHeaderReplacer(IPlaceholders placeholders)
 {
     _placeholders = placeholders;
 }
 public ConfigAwarePlaceholders(IConfiguration configuration, IPlaceholders placeholders)
 {
     _configuration = configuration;
     _placeholders  = placeholders;
 }
Beispiel #5
0
 public AddHeadersToResponse(IPlaceholders placeholders, IOcelotLoggerFactory factory)
 {
     _logger       = factory.CreateLogger <AddHeadersToResponse>();
     _placeholders = placeholders;
 }
 public HeaderFindAndReplaceCreator(IPlaceholders placeholders, IOcelotLoggerFactory factory)
 {
     _logger       = factory.CreateLogger <HeaderFindAndReplaceCreator>();
     _placeholders = placeholders;
 }
Beispiel #7
0
 public AddHeadersToRequest(IClaimsParser claimsParser, IPlaceholders placeholders, IOcelotLoggerFactory factory)
 {
     _logger       = factory.CreateLogger <AddHeadersToRequest>();
     _claimsParser = claimsParser;
     _placeholders = placeholders;
 }