public void CreateViewTest() { var data = GetRandom.Object <TimetableEntryData>(); var view = TimetableEntryViewFactory.Create(new TimetableEntry(data)); TestArePropertyValuesEqual(view, data); }
public void CreateObjectTest() { var view = GetRandom.Object <TimetableEntryView>(); var data = TimetableEntryViewFactory.Create(view).Data; TestArePropertyValuesEqual(view, data); }
public void LoadDetails(CoachView item) { TimetableEntries.Clear(); if (item is null) { return; } timetableEntries.FixedFilter = GetMember.Name <TimetableEntryData>(x => x.CoachId); timetableEntries.FixedValue = item.Id; var list = timetableEntries.Get().GetAwaiter().GetResult(); foreach (var e in list) { TimetableEntries.Add(TimetableEntryViewFactory.Create(e)); } }
protected internal override TimetableEntryView ToView(TimetableEntry obj) { return(TimetableEntryViewFactory.Create(obj)); }
protected internal override TimetableEntry ToObject(TimetableEntryView view) { return(TimetableEntryViewFactory.Create(view)); }