The most important factor is the covenant of lease.
You are buying a cashflow producing property and the security of that cashflow is generally what determines the value.
In essence in valuing a cashflow property you are dividing the income stream by the appropriate rate of return...