public OptionsViewModel(IUIColorsViewModel colors, ICultureViewModel culture) { UIColorsViewModel = colors ?? throw new ArgumentNullException(nameof(colors)); CultureViewModel = culture ?? throw new ArgumentNullException(nameof(culture)); }
public OptionsViewModel(IUIColorsViewModel colors, ICultureViewModel culture) { UIColorsViewModel = colors ?? throw new ArgumentNullException(nameof(colors), $"{nameof(colors)} {Resources.IsRequired}"); CultureViewModel = culture ?? throw new ArgumentNullException(nameof(culture), $"{nameof(culture)} {Resources.IsRequired}"); }