Beispiel #1
0
        public void CreateViewTest()
        {
            var data = GetRandom.Object <FlightData>();
            var view = FlightViewFactory.Create(new global::Airport.Domain.Flight.Flight(data));

            TestArePropertyValuesEqual(view, data);
        }
Beispiel #2
0
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <FlightView>();
            var data = FlightViewFactory.Create(view).Data;

            TestArePropertyValuesEqual(view, data);
        }
Beispiel #3
0
 public override FlightView ToView(Domain.Flight.Flight obj) => FlightViewFactory.Create(obj);
Beispiel #4
0
 public override Domain.Flight.Flight ToObject(FlightView view) => FlightViewFactory.Create(view);