示例#1
0
        public void CreateViewTest()
        {
            var data = GetRandom.Object <LocationData>();
            var view = LocationViewFactory.Create(new Location(data));

            TestArePropertyValuesEqual(view, data);
        }
示例#2
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <LocationView>();
            var data = LocationViewFactory.Create(view).Data;

            TestArePropertyValuesEqual(view, data);
        }
示例#3
0
 protected internal override LocationView ToView(Location obj)
 {
     return(LocationViewFactory.Create(obj));
 }
示例#4
0
 protected internal override Location ToObject(LocationView view)
 {
     return(LocationViewFactory.Create(view));
 }