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