public FluidTemplateEngineTests() { var extensions = new IFluidExtension[] { new DateTimeFluidExtension() }; sut = new FluidTemplateEngine(extensions); }
public ReferenceFluidExtensionTests() { var extensions = new IFluidExtension[] { new ReferencesFluidExtension(contentQuery, appProvider) }; A.CallTo(() => appProvider.GetAppAsync(appId.Id, false)) .Returns(Mocks.App(appId)); sut = new FluidTemplateEngine(extensions); }
public AssetsFluidExtensionTests() { var services = new ServiceCollection() .AddSingleton(appProvider) .AddSingleton(assetQuery) .BuildServiceProvider(); var extensions = new IFluidExtension[] { new AssetsFluidExtension(services) }; A.CallTo(() => appProvider.GetAppAsync(appId.Id, false)) .Returns(Mocks.App(appId)); sut = new FluidTemplateEngine(extensions); }