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

            entity.SetProperties(1, "A");

            BOTicketStatus response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
コード例 #2
0
        public void MapEFToBOList()
        {
            var          mapper = new DALTicketStatusMapper();
            TicketStatus entity = new TicketStatus();

            entity.SetProperties(1, "A");

            List <BOTicketStatus> response = mapper.MapEFToBO(new List <TicketStatus>()
            {
                entity
            });

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