예제 #1
0
        public void MapEFToBOList()
        {
            var mapper = new DALSelfReferenceMapper();
            SelfReference entity = new SelfReference();
            entity.SetProperties(1, 1, 1);

            List<BOSelfReference> response = mapper.MapEFToBO(new List<SelfReference>() { entity });

            response.Count.Should().Be(1);
        }
예제 #2
0
        public void MapEFToBO()
        {
            var mapper = new DALSelfReferenceMapper();
            SelfReference entity = new SelfReference();
            entity.SetProperties(1, 1, 1);

            BOSelfReference response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.SelfReferenceId.Should().Be(1);
            response.SelfReferenceId2.Should().Be(1);
        }
예제 #3
0
        public void MapBOToEF()
        {
            var mapper = new DALSelfReferenceMapper();
            var bo = new BOSelfReference();
            bo.SetProperties(1, 1, 1);

            SelfReference response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.SelfReferenceId.Should().Be(1);
            response.SelfReferenceId2.Should().Be(1);
        }