예제 #1
0
        public void MapEFToBO()
        {
            var          mapper = new DALSpaceFeatureMapper();
            SpaceFeature entity = new SpaceFeature();

            entity.SetProperties(1, "A");

            BOSpaceFeature response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
예제 #2
0
        public void MapEFToBOList()
        {
            var          mapper = new DALSpaceFeatureMapper();
            SpaceFeature entity = new SpaceFeature();

            entity.SetProperties(1, "A", 1);

            List <BOSpaceFeature> response = mapper.MapEFToBO(new List <SpaceFeature>()
            {
                entity
            });

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