mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-26 02:08:29 +02:00
17 lines
458 B
C#
17 lines
458 B
C#
// Copyright © WireMock.Net
|
|
|
|
using Scriban;
|
|
using Scriban.Runtime;
|
|
using WireMock.Types;
|
|
|
|
namespace WireMock.Transformers.Scriban;
|
|
|
|
internal class WireMockTemplateContext : TemplateContext
|
|
{
|
|
protected override IObjectAccessor? GetMemberAccessorImpl(object target)
|
|
{
|
|
return target.GetType().GetGenericTypeDefinition() == typeof(WireMockList<>) ?
|
|
new WireMockListAccessor() :
|
|
base.GetMemberAccessorImpl(target);
|
|
}
|
|
} |