Parameterless constructor throws InvalidOpertionException