Example #1
0
        public void CreateViewTest()
        {
            var data = GetRandom.Object <AustraliaData>();
            var view = AustraliaViewFactory.Create(new Australia(data));

            testArePropertyValuesEqual(view, data);
        }
Example #2
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <AustraliaView>();
            var data = AustraliaViewFactory.Create(view).Data;

            testArePropertyValuesEqual(view, data);
        }
Example #3
0
 public override AustraliaView toView(Australia obj)
 {
     return(AustraliaViewFactory.Create(obj));
 }
Example #4
0
 public override Australia toObject(AustraliaView view)
 {
     return(AustraliaViewFactory.Create(view));
 }