public void SetUp() { var retriever = new SwaggerRetriever(JsonMetadataTests.ApiMetadataConfiguration); var metadataRetriever = new SwaggerMetadataRetriever( JsonMetadataTests.ApiMetadataConfiguration, retriever, new List <string>()); var jfactory = new JsonMetadataFactory(metadataRetriever); _jsonMetadata = jfactory.GetMetadata().ToList(); var ssbuilder = new SchemaSetFactory(new XsdStreamsRetriever(JsonMetadataTests.XmlMetadataConfiguration)); var xfactory = new XsdMetadataFactory(ssbuilder.GetSchemaSet()); _xmlMetadata = xfactory.GetMetadata().ToList(); var strategies = new List <IMetadataMapper> { //new DiminishingMetadataMapper(), new PremappedLookupMetadataMapper(), new LookupDoNotMapPropertyMapper(), //new ArrayMetadataMapper(), new DescriptorReferenceMetadataMapper(), new NameMatchingMetadataMapper() //new SchoolIdBugFixMetadataMapper() }; var factory = new LookupToGetByExampleMetadataMappingFactory(_xmlMetadata, _jsonMetadata, strategies); _mappings = factory.GetMetadataMappings().ToArray(); }
public void Setup() { var ssbuilder = new SchemaSetFactory(new XsdStreamsRetriever(JsonMetadataTests.XmlMetadataConfiguration)); var xfactory = new XsdMetadataFactory(ssbuilder.GetSchemaSet()); _xmlMetadata = xfactory.GetMetadata().ToList(); var factory = new LookupToIdentityMetadataMappingFactory(_xmlMetadata, new NameMatchingMetadataMapper()); _mappings = factory.GetMetadataMappings().ToArray(); }