I m 期望单位检验,在伙伴关系中,已建的“JSON”模式具有约束力。 NET MVC正在按预期开展工作,这意味着我的模型定义正确地向我所接收的JSON string绘制了地图。
something along the lines of
[Fact]
public void MyTest()
{
string json = @"{someProp:....}";
MyModel mm = ASPNET_MVC_JSON_Deserailizer<MyModel>(json);
Assert.Equal("myval", mm.SomeProp);
}
What is the actual code that can be put in for ASPNET_MVC_JSON_Deserailizer<MyModel>