public void TestStringOfJsonCtr() { var id = "http://adlnet.gov/expapi/verbs/experienced"; var json = "{\"id\":\"" + id + "\"}"; var strOfJson = new StringOfJson(json); var obj = new Verb(strOfJson); Assert.IsInstanceOf <Verb>(obj); Assert.That(obj.ToJson(), Is.EqualTo(json)); }
public void TestStringOfJsonCtr() { var json = "{\"success\": true, \"completion\": true, \"response\": \"Yes\"}"; var strOfJson = new StringOfJson(json); var obj = new Result(strOfJson); Assert.IsInstanceOf <Result>(obj); Assert.That(obj.Success, Is.EqualTo(true)); Assert.That(obj.Completion, Is.EqualTo(true)); Assert.That(obj.Response, Is.EqualTo("Yes")); }
public void TestStringOfJsonCtr() { var mbox = "mailto:[email protected]"; var json = "{\"mbox\":\"" + mbox + "\"}"; var strOfJson = new StringOfJson(json); var obj = new Agent(strOfJson); Assert.IsInstanceOf <Agent>(obj); Assert.That(obj.Mbox, Is.EqualTo(mbox)); }
public Context(StringOfJson json) : this(json.ToJObject()) { }
public LanguageMap(StringOfJson json) : this(json.ToJObject()) { }
public Group(StringOfJson json) : this(json.ToJObject()) { }
protected StatementBase(StringOfJson json) : this(json.ToJObject()) { }
public StatementRef(StringOfJson json) : this(json.ToJObject()) { }
public ContextActivities(StringOfJson json) : this(json.ToJObject()) { }
public Verb(StringOfJson json) : this(json.ToJObject()) { }
public StatementsResult(StringOfJson json) : this(json.ToJObject()) { }
public Score(StringOfJson json) : this(json.ToJObject()) { }
public AgentAccount(StringOfJson json) : this(json.ToJObject()) { }
public About(StringOfJson json) : this(json.ToJObject()) { }
public ActivityDefinition(StringOfJson json) : this(json.ToJObject()) { }
public Result(StringOfJson json) : this(json.ToJObject()) { }