public void CreateViewTest()
        {
            var data = GetRandom.Object <ChinaData>();
            var view = ChinaViewFactory.Create(new China(data));

            testArePropertyValuesEqual(view, data);
        }
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <ChinaView>();
            var data = ChinaViewFactory.Create(view).Data;

            testArePropertyValuesEqual(view, data);
        }
Exemplo n.º 3
0
 public override ChinaView toView(China obj)
 {
     return(ChinaViewFactory.Create(obj));
 }
Exemplo n.º 4
0
 public override China toObject(ChinaView view)
 {
     return(ChinaViewFactory.Create(view));
 }