Ejemplo n.º 1
0
        static PartialFieldType TypeToFieldType(ObganismType obganismType)
        {
            var fieldType = new PartialFieldType {
                Name = obganismType.Name
            };

            var i = 0;

            foreach (var obganismGeneric in obganismType.Generics)
            {
                fieldType.Generics.Add(i++, TypeToFieldType(obganismGeneric));
            }

            return(fieldType);
        }
Ejemplo n.º 2
0
 static void AssertObo(JsonObject expected, ObganismType actual)
 {
     Assert.AreEqual(expected.Qs("name"), actual.Name, "Type names are not the same.");
     AssertObo(expected.Qa("generics"), actual.Generics);
 }