Example #1
0
 protected GeneratorServiceBase(RamlDocument raml, string targetNamespace)
 {
     this.raml              = raml;
     this.targetNamespace   = targetNamespace;
     apiObjectsCleaner      = new ApiObjectsCleaner(schemaRequestObjects, schemaResponseObjects, schemaObjects);
     uriParametersGenerator = new UriParametersGenerator(schemaObjects);
     ApplyResourceTypesAndTraits(raml.Resources);
     raml1TypesParser = new RamlTypeParser(raml.Types, schemaObjects, targetNamespace, enums, warnings);
 }
 protected MethodsGeneratorBase(RamlDocument raml, IDictionary <string, ApiObject> schemaResponseObjects,
                                IDictionary <string, ApiObject> schemaRequestObjects, IDictionary <string, string> linkKeysWithObjectNames, IDictionary <string, ApiObject> schemaObjects)
 {
     this.raml = raml;
     this.schemaResponseObjects = schemaResponseObjects;
     this.schemaObjects         = schemaObjects;
     responseTypesService       = new ResponseTypesService(schemaObjects, schemaResponseObjects, linkKeysWithObjectNames, raml.ResourceTypes);
     requestTypesService        = new RequestTypesService(schemaObjects, schemaRequestObjects, linkKeysWithObjectNames, raml.ResourceTypes);
     uriParametersGenerator     = new UriParametersGenerator(schemaObjects);
 }