private bool SchemaExists(Schema usedSchema, object projectSystem) { bool retVal = false; if (projectSystem != null) { // start off by retrieving all available schemas within the project Schema[] schemas = SchemaRetriever.GetSchemas(projectSystem); // iterate the retrieved schemas foreach (Schema schema in schemas) { // if we find a match, we return true if (schema.SchemaName == usedSchema.SchemaName) { retVal = true; break; } } } return(retVal); }
public SchemaRetrieverTests() { _subject = new SchemaRetriever(); _swaggerDocumentName = "Sample API"; }