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