public void CreateViewTest()
        {
            var data = GetRandom.Object <AirportData>();
            var view = AirportViewFactory.Create(new global::Airport.Domain.Airport.Airport(data));

            TestArePropertyValuesEqual(view, data);
        }
        public void CreateObjectTest()
        {
            var view = GetRandom.Object <AirportView>();
            var data = AirportViewFactory.Create(view).Data;

            TestArePropertyValuesEqual(view, data);
        }
Esempio n. 3
0
 public override AirportView ToView(global::Airport.Domain.Airport.Airport obj) =>
 AirportViewFactory.Create(obj);
Esempio n. 4
0
 public override global::Airport.Domain.Airport.Airport ToObject(AirportView view) =>
 AirportViewFactory.Create(view);