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

            entity.SetProperties(1, "A");

            BOTicketStatu response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
예제 #2
0
        public void MapBOToEF()
        {
            var mapper = new DALTicketStatuMapper();
            var bo     = new BOTicketStatu();

            bo.SetProperties(1, "A");

            TicketStatu response = mapper.MapBOToEF(bo);

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

            entity.SetProperties(1, "A");

            List <BOTicketStatu> response = mapper.MapEFToBO(new List <TicketStatu>()
            {
                entity
            });

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