Write e2e tests and service unit tests for the GetZoningDistrictClassesByTaxLotBbl endpoint.
(This endpoint is within the tax lot domain and accepts a tax lot bbl. However, it returns zoning-district-classes. In instances where we want to mock the return of an object based on its relationship to another we can use a tuple. A tuple of length two will "link" the two objects. See branch 118/unit-test for an example. We relate a tax lot to zoning-district-classes by placing them in a tuple.)
Acceptance criteria
e2e tests
[x] 200 path
[x] 400 path from invalid request parameter
[x] bbl incorrect length
[x] bbl contains a letter
[x] 404 path from missing bbl
[x] 500 path from database error
service unit tests
[x] successfully return expected data
[x] handle ResourceNotFoundError
Related tickets
blocked by #147 which will create the required tax-lot repository mock and tax-lot entity schema
blocked by #155 which will create the checkTaxLotByBbl mock method
blocked by #151 which will create the required zoning district class entity schema
Description
Write e2e tests and service unit tests for the
GetZoningDistrictClassesByTaxLotBbl
endpoint.(This endpoint is within the tax lot domain and accepts a tax lot bbl. However, it returns zoning-district-classes. In instances where we want to mock the return of an object based on its relationship to another we can use a tuple. A tuple of length two will "link" the two objects. See branch 118/unit-test for an example. We relate a tax lot to zoning-district-classes by placing them in a tuple.)
Acceptance criteria
e2e tests
service unit tests
Related tickets
blocked by #147 which will create the required tax-lot repository mock and tax-lot entity schema blocked by #155 which will create the
checkTaxLotByBbl
mock method blocked by #151 which will create the required zoning district class entity schema