public void MapEFToBO() { var mapper = new DALSaleTicketsMapper(); SaleTickets entity = new SaleTickets(); entity.SetProperties(1, 1, 1); BOSaleTickets response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.SaleId.Should().Be(1); response.TicketId.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALSaleTicketsMapper(); SaleTickets entity = new SaleTickets(); entity.SetProperties(1, 1, 1); List <BOSaleTickets> response = mapper.MapEFToBO(new List <SaleTickets>() { entity }); response.Count.Should().Be(1); }