public void CreateViewTest() { var data = GetRandom.Object <UnitTermData>(); var view = UnitTermViewFactory.Create(new UnitTerm(data)); TestArePropertyValuesEqual(view, data); }
public void CreateObjectTest() { var view = GetRandom.Object <UnitTermView>(); var data = UnitTermViewFactory.Create(view).Data; TestArePropertyValuesEqual(view, data); }
[TestMethod] public void CreateObjectTest() { var view = GetRandom.Object <UnitTermView>(); var data = UnitTermViewFactory.Create(view).Data; arePropertiesEqual(view, data); }
private void loadTerms(UniqueEntityView item) { Terms.Clear(); if (item is null) { return; } terms.FixedFilter = GetMember.Name <UnitTermData>(x => x.MasterId); terms.FixedValue = item.Id; var list = terms.Get().GetAwaiter().GetResult(); foreach (var e in list) { Terms.Add(UnitTermViewFactory.Create(e)); } }
protected internal override UnitTermView toView(UnitTerm obj) { return(UnitTermViewFactory.Create(obj)); }
protected internal override UnitTerm toObject(UnitTermView view) { return(UnitTermViewFactory.Create(view)); }
protected internal override UnitTermView toView(UnitTerm obj) => UnitTermViewFactory.Create(obj);
protected internal override UnitTerm toObject(UnitTermView view) => UnitTermViewFactory.Create(view);