Exemplo n.º 1
0
 public void ShouldParseUriAsString()
 {
     raml1TypeBuilder.Add(typeof(WebLocation));
     Assert.AreEqual(1, raml1Types.Count);
     Assert.IsTrue(!raml1Types.ContainsKey("Uri"));
     Assert.AreEqual(2, raml1Types.GetByKey("WebLocation").Object.Properties.Count);
     Assert.IsTrue(raml1Types.GetByKey("WebLocation").Object.Properties.ContainsKey("BaseUri"));
     Assert.IsTrue(raml1Types.GetByKey("WebLocation").Object.Properties.ContainsKey("Location"));
 }
Exemplo n.º 2
0
 public void Parse()
 {
     foreach (var key in ramlTypes.Keys)
     {
         var apiObject = ParseRamlType(key, ramlTypes.GetByKey(key));
         if (apiObject != null && !schemaObjects.ContainsKey(key))
         {
             schemaObjects.Add(key, apiObject);
         }
     }
 }