public void MapBOToModel() { var mapper = new BOLTicketMapper(); BOTicket bo = new BOTicket(); bo.SetProperties(1, "A", 1); ApiTicketResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.PublicId.Should().Be("A"); response.TicketStatusId.Should().Be(1); }
public void MapBOToModelList() { var mapper = new BOLTicketMapper(); BOTicket bo = new BOTicket(); bo.SetProperties(1, "A", 1); List <ApiTicketResponseModel> response = mapper.MapBOToModel(new List <BOTicket>() { { bo } }); response.Count.Should().Be(1); }