public void MapEFToBO() { var mapper = new DALTicketStatusMapper(); TicketStatus entity = new TicketStatus(); entity.SetProperties(1, "A"); BOTicketStatus response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALTicketStatusMapper(); TicketStatus entity = new TicketStatus(); entity.SetProperties(1, "A"); List <BOTicketStatus> response = mapper.MapEFToBO(new List <TicketStatus>() { entity }); response.Count.Should().Be(1); }