public void Generate_Generic2() { DefaultSchemaIdFactory.Generate(typeof(Dictionary <string, Foo>)) .ShouldBe("dictionaryOfStringAndFoo"); }
public void Generate_Generic1() { DefaultSchemaIdFactory.Generate(typeof(List <Foo>)) .ShouldBe("listOfFoo"); }
public void Generate_RemovesInvalidCharacters() { DefaultSchemaIdFactory.Generate(typeof(TypeWithInvalidCharacters)) .ShouldBe("thisisinvalid"); }
public void Generate_NestedType_ConcatenatesTypeNames() { DefaultSchemaIdFactory.Generate(typeof(OuterType.InnerType)) .ShouldBe("outerTypeInnerType"); }
public void Generate_UsesTitleFromJsonObject() { DefaultSchemaIdFactory.Generate(typeof(TypeWithJsonObjectAttribute)) .ShouldBe("jsonObjectTitle"); }