Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public void MapBOToEF()
        {
            var mapper = new DALSaleTicketsMapper();
            var bo     = new BOSaleTickets();

            bo.SetProperties(1, 1, 1);

            SaleTickets response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.SaleId.Should().Be(1);
            response.TicketId.Should().Be(1);
        }
Ejemplo n.º 3
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);
        }