public IntlNotamViewModel(IntlNotam notam, IntlNotamService notamService) { if (notam == null) throw new ArgumentNullException("notam"); if (notamService == null) throw new ArgumentNullException("notamService"); _notam = notam.Clone(); _notamService = notamService; this.validators = this.GetType() .GetProperties() .Where(p => this.GetValidations(p).Length != 0) .ToDictionary(p => p.Name, p => this.GetValidations(p)); this.propertyGetters = this.GetType() .GetProperties() .Where(p => this.GetValidations(p).Length != 0) .ToDictionary(p => p.Name, p => this.GetValueGetter(p)); }