public void GenerateContents_GivenValidPublishedProviderVersion_ReturnsValidJson()
        {
            //Arrange
            ILogger logger = CreateLogger();

            ITemplateMetadataGenerator templateMetaDataGenerator = CreateTemplateGenerator(logger);

            TemplateMetadataContents contents = templateMetaDataGenerator.GetMetadata(GetResourceString("CalculateFunding.Generators.Schema10.UnitTests.Resources.exampleProviderTemplate1.json"));

            PublishedProviderContentsGenerator publishedProviderContentsGenerator = new PublishedProviderContentsGenerator();

            //Act
            string publishedcontents = publishedProviderContentsGenerator.GenerateContents(GetProviderVersion(), contents, GetTemplateMapping());

            //Assert
            string expectedOutput = GetResourceString("CalculateFunding.Generators.Schema10.UnitTests.Resources.exampleProviderOutput1.json").Prettify();

            publishedcontents
            .Prettify()
            .Should()
            .Be(expectedOutput);
        }
 private string WhenThePublishedProviderVersionIsTransformed(PublishedProviderVersion publishedProviderVersion,
                                                             TemplateMetadataContents templateMetadataContents,
                                                             TemplateMapping templateMapping)
 => _generator.GenerateContents(publishedProviderVersion,
                                templateMetadataContents,
                                templateMapping);