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