public void ThrowsOnEntityThatDoesNotImplementIEntityButSharesInterface() { var validator = new EntityValidator(); Assert.Throws <MalformedResourceEntityException> ( () => validator.ValidateResourceEntity(typeof(EntityThatDoesNotImplementIEntityButSharesInterface)) ); }
public void ThrowsOnEntityWithUnexpectedOrderInConstructor() { var validator = new EntityValidator(); Assert.Throws <MalformedResourceEntityException> ( () => validator.ValidateResourceEntity(typeof(EntityWithUnexpectedOrderInConstructor)) ); }
public void ThrowsOnEntityWithMultipleConstructors() { var validator = new EntityValidator(); Assert.Throws <MalformedResourceEntityException> ( () => validator.ValidateResourceEntity(typeof(EntityWithMultipleConstructors)) ); }
public void ThrowsOnEntityWithPrivateSetterProperties() { var validator = new EntityValidator(); Assert.Throws <MalformedResourceEntityException> ( () => validator.ValidateResourceEntity(typeof(EntityWithPrivateSetterProperties)) ); }
public void ThrowsOnEntityWithFieldsAndPropertiesInConstructor() { var validator = new EntityValidator(); Assert.Throws <MalformedResourceEntityException> ( () => validator.ValidateResourceEntity(typeof(EntityWithFieldsAndPropertiesInConstructor)) ); }
public void ThrowsOnEntityWithOnlyFields() { var validator = new EntityValidator(); Assert.Throws <MalformedResourceEntityException> ( () => validator.ValidateResourceEntity(typeof(EntityWithOnlyFields)) ); }
public void ValidatesEntityWithOnlyMethods() { var validator = new EntityValidator(); validator.ValidateResourceEntity(typeof(EntityWithOnlyMethods)); }
public void ValidatesEmptyEntity() { var validator = new EntityValidator(); validator.ValidateResourceEntity(typeof(EmptyEntity)); }
public void ValidatesValidEntityWithManyProperties() { var validator = new EntityValidator(); validator.ValidateResourceEntity(typeof(ValidEntityWithManyProperties)); }
public void ValidatesEntityWithPropertiesAndMethods() { var validator = new EntityValidator(); validator.ValidateResourceEntity(typeof(EntityWithPropertiesAndMethods)); }