Beispiel #1
0
        public void Setup()
        {
            schemaMetaPropertyService = MockRepository.GenerateStub <ISchemaMetaPropertyService>();
            config = MockRepository.GenerateStub <IYuzuConfiguration>();
            config.SchemaMetaLocations = new List <IDataLocation>();

            svc = MockRepository.GeneratePartialMock <SchemaMetaService>(new object[] { schemaMetaPropertyService, config });

            jsonPaths = @"{
                'refs': {
                    '/contentRows': [
                        '/parTest', '/parTest2'
                    ]
                }
            }";

            jsonOfTypeParent = @"{
                'refs': {
                    '/content': [
                        '/parDataGridRows^parGrid'
                    ],
                }
            }";

            jsonOfTypeChild = @"{
                'parGrid': {
                    'refs': {
                        '/rows/columns/items': [
                            '/parRte', '/parImage'
                        ]
                    }
                },
                'anyOfTypes': [
                    'parGrid'
                ]
            }";
        }
Beispiel #2
0
 public SchemaMetaService(ISchemaMetaPropertyService schemaMetaPropertyService, IYuzuConfiguration config)
 {
     this.schemaMetaPropertyService = schemaMetaPropertyService;
     this.config = config;
 }