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); }
public override AirportView ToView(global::Airport.Domain.Airport.Airport obj) => AirportViewFactory.Create(obj);
public override global::Airport.Domain.Airport.Airport ToObject(AirportView view) => AirportViewFactory.Create(view);