public void MapBOToModel() { var mapper = new BOLLessonXTeacherMapper(); BOLessonXTeacher bo = new BOLessonXTeacher(); bo.SetProperties(1, 1, 1); ApiLessonXTeacherResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.LessonId.Should().Be(1); response.StudentId.Should().Be(1); }
public void MapBOToModelList() { var mapper = new BOLLessonXTeacherMapper(); BOLessonXTeacher bo = new BOLessonXTeacher(); bo.SetProperties(1, 1, 1); List <ApiLessonXTeacherResponseModel> response = mapper.MapBOToModel(new List <BOLessonXTeacher>() { { bo } }); response.Count.Should().Be(1); }