public void Entity_Invoke_Validates_Property_Validation()
        {
            TestEntityContainer container = new TestEntityContainer();
            var invocableCity = new City("This is an invalid state name");
            container.GetEntitySet<City>().Add(invocableCity);

            invocableCity.Name = "Redmond";

            StringLengthAttribute expectedAttribute = new StringLengthAttribute(2);
            string expectedMember = "StateName";
            string expectedError = expectedAttribute.FormatErrorMessage(expectedMember);

            ExceptionHelper.ExpectValidationException(delegate
            {
                invocableCity.AssignCityZone("West");
            }, expectedError, expectedAttribute.GetType(), invocableCity.StateName);
        }