Added static helpers for entity validation .

I created ValidateEntity class for both integer and string id based
entities to:
1. Return IsValid based on if an entity has any broken rules.
2. Throw a custom exception when a  entity is not valid with
ThrowExceptionIfEntityIsInvalid.

Tests were added of course