Making repositories unmodifiable only for consumers (error in dispose
method)