Example #1
0
        public void MapBOToModel()
        {
            var           mapper = new BOLSaleTicketsMapper();
            BOSaleTickets bo     = new BOSaleTickets();

            bo.SetProperties(1, 1, 1);
            ApiSaleTicketsResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.SaleId.Should().Be(1);
            response.TicketId.Should().Be(1);
        }
Example #2
0
        public void MapBOToModelList()
        {
            var           mapper = new BOLSaleTicketsMapper();
            BOSaleTickets bo     = new BOSaleTickets();

            bo.SetProperties(1, 1, 1);
            List <ApiSaleTicketsResponseModel> response = mapper.MapBOToModel(new List <BOSaleTickets>()
            {
                { bo }
            });

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