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