Exemple #1
0
        public void CreateViewTest()
        {
            var data = GetRandom.Object <UnitTermData>();
            var view = UnitTermViewFactory.Create(new UnitTerm(data));

            TestArePropertyValuesEqual(view, data);
        }
Exemple #2
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <UnitTermView>();
            var data = UnitTermViewFactory.Create(view).Data;

            TestArePropertyValuesEqual(view, data);
        }
Exemple #3
0
        [TestMethod] public void CreateObjectTest()
        {
            var view = GetRandom.Object <UnitTermView>();
            var data = UnitTermViewFactory.Create(view).Data;

            arePropertiesEqual(view, data);
        }
Exemple #4
0
        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));
            }
        }
Exemple #5
0
 protected internal override UnitTermView toView(UnitTerm obj)
 {
     return(UnitTermViewFactory.Create(obj));
 }
Exemple #6
0
 protected internal override UnitTerm toObject(UnitTermView view)
 {
     return(UnitTermViewFactory.Create(view));
 }
Exemple #7
0
 protected internal override UnitTermView toView(UnitTerm obj) => UnitTermViewFactory.Create(obj);
Exemple #8
0
 protected internal override UnitTerm toObject(UnitTermView view) => UnitTermViewFactory.Create(view);