Esempio n. 1
0
        public void MapEFToBO()
        {
            var            mapper = new DALLessonXStudentMapper();
            LessonXStudent entity = new LessonXStudent();

            entity.SetProperties(1, 1, 1);

            BOLessonXStudent response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.LessonId.Should().Be(1);
            response.StudentId.Should().Be(1);
        }
Esempio n. 2
0
        public void MapEFToBOList()
        {
            var            mapper = new DALLessonXStudentMapper();
            LessonXStudent entity = new LessonXStudent();

            entity.SetProperties(1, 1, 1);

            List <BOLessonXStudent> response = mapper.MapEFToBO(new List <LessonXStudent>()
            {
                entity
            });

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