public void MapEFToBO() { var mapper = new DALTicketMapper(); Ticket entity = new Ticket(); entity.SetProperties(1, "A", 1); BOTicket response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.PublicId.Should().Be("A"); response.TicketStatusId.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALTicketMapper(); Ticket entity = new Ticket(); entity.SetProperties(1, "A", 1); List <BOTicket> response = mapper.MapEFToBO(new List <Ticket>() { entity }); response.Count.Should().Be(1); }