public void MapBOToModel() { var mapper = new BOLProxyMapper(); BOProxy bo = new BOProxy(); bo.SetProperties("A", "A", "A"); ApiProxyResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLProxyMapper(); BOProxy bo = new BOProxy(); bo.SetProperties("A", "A", "A"); List <ApiProxyResponseModel> response = mapper.MapBOToModel(new List <BOProxy>() { { bo } }); response.Count.Should().Be(1); }