public void CreateViewTest() { var data = GetRandom.Object <ParticipantOfTrainingData>(); var view = ParticipantOfTrainingViewFactory.Create(new SportClub.Domain.ParticipantOfTraining.ParticipantOfTraining(data)); TestArePropertyValuesEqual(view, data); }
public void CreateObjectTest() { var view = GetRandom.Object <ParticipantOfTrainingView>(); var data = ParticipantOfTrainingViewFactory.Create(view).Data; TestArePropertyValuesEqual(view, data); }
public void LoadDetails(TimetableEntryView item) { Participants.Clear(); if (item is null) { return; } participants.FixedFilter = GetMember.Name <ParticipantOfTrainingData>(x => x.TimetableEntryId); participants.FixedValue = item.Id; var list = participants.Get().GetAwaiter().GetResult(); foreach (var e in list) { Participants.Add(ParticipantOfTrainingViewFactory.Create(e)); } }
protected internal override ParticipantOfTrainingView ToView(ParticipantOfTraining obj) { return(ParticipantOfTrainingViewFactory.Create(obj)); }
protected internal override ParticipantOfTraining ToObject(ParticipantOfTrainingView view) { return(ParticipantOfTrainingViewFactory.Create(view)); }
public override ParticipantOfTrainingView ToView(Domain.ParticipantOfTraining.ParticipantOfTraining obj) => ParticipantOfTrainingViewFactory.Create(obj);
public override Domain.ParticipantOfTraining.ParticipantOfTraining ToObject(ParticipantOfTrainingView view) => ParticipantOfTrainingViewFactory.Create(view);