Exemple #1
0
        public void MapEFToBO()
        {
            var            mapper = new DALStudentXFamilyMapper();
            StudentXFamily entity = new StudentXFamily();

            entity.SetProperties(1, 1, 1);

            BOStudentXFamily response = mapper.MapEFToBO(entity);

            response.FamilyId.Should().Be(1);
            response.Id.Should().Be(1);
            response.StudentId.Should().Be(1);
        }
Exemple #2
0
        public void MapBOToEF()
        {
            var mapper = new DALStudentXFamilyMapper();
            var bo     = new BOStudentXFamily();

            bo.SetProperties(1, 1, 1);

            StudentXFamily response = mapper.MapBOToEF(bo);

            response.FamilyId.Should().Be(1);
            response.Id.Should().Be(1);
            response.StudentId.Should().Be(1);
        }
Exemple #3
0
        public void MapEFToBOList()
        {
            var            mapper = new DALStudentXFamilyMapper();
            StudentXFamily entity = new StudentXFamily();

            entity.SetProperties(1, 1, 1);

            List <BOStudentXFamily> response = mapper.MapEFToBO(new List <StudentXFamily>()
            {
                entity
            });

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