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

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

            TestArePropertyValuesEqual(view, data);
        }
Exemplo n.º 3
0
 public override TrainingView ToView(Domain.Training.Training obj) => TrainingViewFactory.Create(obj);
Exemplo n.º 4
0
 public override Domain.Training.Training ToObject(TrainingView view) => TrainingViewFactory.Create(view);
Exemplo n.º 5
0
 protected internal override TrainingView ToView(Training obj)
 {
     return(TrainingViewFactory.Create(obj));
 }
Exemplo n.º 6
0
 protected internal override Training ToObject(TrainingView view)
 {
     return(TrainingViewFactory.Create(view));
 }