コード例 #1
0
        public void CreateViewTest()
        {
            var data = GetRandom.Object <EuropeData>();
            var view = EuropeViewFactory.Create(new Europe(data));

            testArePropertyValuesEqual(view, data);
        }
コード例 #2
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <EuropeView>();
            var data = EuropeViewFactory.Create(view).Data;

            testArePropertyValuesEqual(view, data);
        }
コード例 #3
0
 public override EuropeView toView(Europe obj)
 {
     return(EuropeViewFactory.Create(obj));
 }
コード例 #4
0
 public override Europe toObject(EuropeView view)
 {
     return(EuropeViewFactory.Create(view));
 }