public void CreateViewTest()
        {
            var data = GetRandom.Object <MeasureTermData>();
            var view = MeasureTermViewFactory.Create(new MeasureTerm(data));

            testArePropertyValuesEqual(view, data);
        }
        [TestMethod] public void CreateObjectTest()
        {
            var view = GetRandom.Object <MeasureTermView>();
            var data = MeasureTermViewFactory.Create(view).Data;

            testArePropertyValuesEqual(view, data);
        }
Beispiel #3
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <MeasureTermView>();
            var data = MeasureTermViewFactory.Create(view).Data; //annan view katte talle

            testArePropertyValuesEqual(view, data);
        }
Beispiel #4
0
        public void LoadDetails(MeasureView item)
        {
            Terms.Clear();
            if (item is null)
            {
                return;
            }
            terms.FixedFilter = GetMember.Name <MeasureTermData>(x => x.MasterId);
            terms.FixedValue  = item.Id;
            var list = terms.Get().GetAwaiter().GetResult();

            foreach (var e in list)
            {
                Terms.Add(MeasureTermViewFactory.Create(e));
            }
        }
Beispiel #5
0
 protected internal override MeasureTermView toView(MeasureTerm obj) => MeasureTermViewFactory.Create(obj);
Beispiel #6
0
 protected internal override MeasureTerm toObject(MeasureTermView view) => MeasureTermViewFactory.Create(view);
 protected internal override MeasureTermView toView(MeasureTerm obj)
 {
     return(MeasureTermViewFactory.Create(obj));
 }