Inheritance: GraphQL.Types.Schema
コード例 #1
0
        public void registers_interfaces_when_not_used_in_fields()
        {
            var schema = new AnInterfaceSchema();
            var result = schema.AllTypes.SingleOrDefault(x => x.Name == "AnInterfaceType");

            result.ShouldNotBeNull("Interface type should be registered");
        }
コード例 #2
0
 public void registers_interfaces_when_not_used_in_fields()
 {
     var schema = new AnInterfaceSchema();
     schema.EnsureLookup();
     var result = schema.AllTypes.SingleOrDefault(x => x.Name == "AnInterfaceType");
     result.ShouldNotBeNull("Interface type should be registered");
 }