public void Setup() { _iso = LoadIsisSingleObject(); _layout = GetLayout(); _collLayout = _layout.row[1].cols[1].col.tabGroup[0].tab[0].row[0].cols[0].col.collection[0]; Assert.AreEqual("contactNumbers", _collLayout.id); }
public void Publish(Object sender, IsisSingleObject target) { if (this.ObjectLoaded != null) { this.ObjectLoaded(this, new ObjectLoadedEventArgs(target)); } }
protected IsisSingleObject LoadIsisSingleObject() { var raw = System.IO.File.ReadAllText("data/contact.json"); var token = JObject.Parse(raw); var iso = new IsisSingleObject(token); return iso; }
public void Setup() { _iso = LoadIsisSingleObject(); var raw = System.IO.File.ReadAllText("data/layout.json"); System.Text.Json.JsonSerializer.Deserialize <ObjectLayout>(raw); }
public void Setup() { _iso = LoadIsisSingleObject(); var raw = System.IO.File.ReadAllText("data/layout.json"); _layout = System.Text.Json.JsonSerializer.Deserialize <ObjectLayout>(raw); _contactDetails = _layout.row[1].cols[0].col.tabGroup[0].tab[0].row[0].cols[0].col.fieldSet[0]; }
public UnrefencedMembersFilter(IsisSingleObject iso, ObjectLayout layout) { var collector = new MembersCollectorVisitor(); layout.Accept(collector); Actions = iso.ro.Actions.Except(collector.Actions, new MemberIdentityComparer()).OfType <Member>(); Properties = iso.ro.Properties.Except(collector.Properties, new MemberIdentityComparer()).OfType <Member>(); }
protected IsisSingleObject LoadIsisObject() { var fileName = Directory.GetCurrentDirectory(); var raw = System.IO.File.ReadAllText("data/contact.json"); var obj = JObject.Parse(raw); var isisObj = new IsisSingleObject(obj); return(isisObj); }
public CollectionLayoutFilter(IsisSingleObject iso, LayoutCollection layout) { _iso = iso; _layout = layout; Actions = from action in iso.ro.Actions join layoutAction in _layout.action on action.id equals layoutAction.id select action; Collection = iso.ro.collection.FirstOrDefault(x => x.id == _layout.id); }
public FieldSetLayoutFilter(IsisSingleObject iso, LayoutFieldSet layout) { _iso = iso; _layout = layout; Actions = from action in iso.ro.Actions join layoutAction in _layout.action on action.id equals layoutAction.id select action; Properties = from prop in iso.ro.Properties join layoutProp in _layout.property on prop.id equals layoutProp.id select prop; }
public ObjectLoadedEventArgs(IsisSingleObject context) { Object = context; }