示例#1
0
        public void MapEFToBO()
        {
            var            mapper = new DALLessonXTeacherMapper();
            LessonXTeacher entity = new LessonXTeacher();

            entity.SetProperties(1, 1, 1);

            BOLessonXTeacher response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.LessonId.Should().Be(1);
            response.StudentId.Should().Be(1);
        }
示例#2
0
        public void MapEFToBOList()
        {
            var            mapper = new DALLessonXTeacherMapper();
            LessonXTeacher entity = new LessonXTeacher();

            entity.SetProperties(1, 1, 1);

            List <BOLessonXTeacher> response = mapper.MapEFToBO(new List <LessonXTeacher>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }