Exemplo n.º 1
0
        public void CreateViewTest()
        {
            var data = GetRandom.Object <TrainingTypeData>();
            var view = TrainingTypeViewFactory.Create(new SportClub.Domain.TrainingType.TrainingType(data));

            TestArePropertyValuesEqual(view, data);
        }
Exemplo n.º 2
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <TrainingTypeView>();
            var data = TrainingTypeViewFactory.Create(view).Data;

            TestArePropertyValuesEqual(view, data);
        }
Exemplo n.º 3
0
 protected internal override TrainingTypeView ToView(TrainingType obj)
 {
     return(TrainingTypeViewFactory.Create(obj));
 }
Exemplo n.º 4
0
 protected internal override TrainingType ToObject(TrainingTypeView view)
 {
     return(TrainingTypeViewFactory.Create(view));
 }