コード例 #1
0
        public void MapEFToBO()
        {
            var             mapper = new DALRowVersionCheckMapper();
            RowVersionCheck entity = new RowVersionCheck();

            entity.SetProperties(1, "A", Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"));

            BORowVersionCheck response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.RowVersion.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"));
        }
コード例 #2
0
        public void MapEFToBOList()
        {
            var             mapper = new DALRowVersionCheckMapper();
            RowVersionCheck entity = new RowVersionCheck();

            entity.SetProperties(1, "A", Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"));

            List <BORowVersionCheck> response = mapper.MapEFToBO(new List <RowVersionCheck>()
            {
                entity
            });

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