public FluidTemplateEngineTests()
        {
            var extensions = new IFluidExtension[]
            {
                new DateTimeFluidExtension()
            };

            sut = new FluidTemplateEngine(extensions);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }