Пример #1
0
        public void MapBOToModel()
        {
            var           mapper = new BOLTicketStatuMapper();
            BOTicketStatu bo     = new BOTicketStatu();

            bo.SetProperties(1, "A");
            ApiTicketStatuResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Пример #2
0
        public void MapBOToModelList()
        {
            var           mapper = new BOLTicketStatuMapper();
            BOTicketStatu bo     = new BOTicketStatu();

            bo.SetProperties(1, "A");
            List <ApiTicketStatuResponseModel> response = mapper.MapBOToModel(new List <BOTicketStatu>()
            {
                { bo }
            });

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