public FubuHtmlDocument <IgnoredModel> get_ignored(IgnoredModel input) { _ignoredPage.Add(new HtmlTag("h1").Text("Ignored Form")); _ignoredPage.Add(createIgnoredForm()); _ignoredPage.Asset("recorder.js"); _ignoredPage.Add(_ignoredPage.WriteScriptTags()); return(_ignoredPage); }
public FubuHtmlDocument<IgnoredModel> get_ignored(IgnoredModel input) { _ignoredPage.Add(new HtmlTag("h1").Text("Ignored Form")); _ignoredPage.Add(createIgnoredForm()); _ignoredPage.Asset("recorder.js"); _ignoredPage.Add(_ignoredPage.WriteScriptTags()); return _ignoredPage; }
public void Can_change_ignored_properties() { var dto = new IgnoredModel(); JsConfig.IgnoreAttributesNamed = new[] { typeof(IgnoreDataMemberAttribute).Name //i.e. Remove [JsonIgnore] }; Assert.That(dto.ToJson(), Is.EqualTo("{\"Id\":0,\"JsonIgnoreId\":0}")); }
public void Can_change_ignored_properties() { JsConfig.IgnoreAttributesNamed = JsConfig.IgnoreAttributesNamed.NewArray( with: typeof(ScriptIgnoreAttribute).Name, without: typeof(JsonIgnoreAttribute).Name); var dto = new IgnoredModel { JsonIgnoreId = 1, ScriptIgnoreId = 2 }; Assert.That(dto.ToJson(), Is.EqualTo("{\"Id\":0,\"JsonIgnoreId\":1}")); }
public AjaxContinuation post_ignored(IgnoredModel input) { return(AjaxContinuation.Successful()); }
public AjaxContinuation post_ignored(IgnoredModel input) { return AjaxContinuation.Successful(); }
public void IgnoredModelInParameters(IgnoredModel ignoredModel) { }
public BusinessDataModel(IgnoredModel ignoredModel) : this() { }