Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }