Beispiel #1
0
        public void MapEFToBO()
        {
            var       mapper = new DALPersonRefMapper();
            PersonRef entity = new PersonRef();

            entity.SetProperties(1, 1, 1);

            BOPersonRef response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.PersonAId.Should().Be(1);
            response.PersonBId.Should().Be(1);
        }
Beispiel #2
0
        public void MapBOToEF()
        {
            var mapper = new DALPersonRefMapper();
            var bo     = new BOPersonRef();

            bo.SetProperties(1, 1, 1);

            PersonRef response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.PersonAId.Should().Be(1);
            response.PersonBId.Should().Be(1);
        }
Beispiel #3
0
        public void MapEFToBOList()
        {
            var       mapper = new DALPersonRefMapper();
            PersonRef entity = new PersonRef();

            entity.SetProperties(1, 1, 1);

            List <BOPersonRef> response = mapper.MapEFToBO(new List <PersonRef>()
            {
                entity
            });

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