public void MapBOToModel() { var mapper = new BOLPostHistoryTypesMapper(); BOPostHistoryTypes bo = new BOPostHistoryTypes(); bo.SetProperties(1, "A"); ApiPostHistoryTypesResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Type.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLPostHistoryTypesMapper(); BOPostHistoryTypes bo = new BOPostHistoryTypes(); bo.SetProperties(1, "A"); List <ApiPostHistoryTypesResponseModel> response = mapper.MapBOToModel(new List <BOPostHistoryTypes>() { { bo } }); response.Count.Should().Be(1); }