Mercurial > silverbladetech
comparison SilverlightValidation/SilverlightValidation.PL/ViewModels/UserViewModel.cs @ 97:1adc1ae981ea
Tests added to SilverlightValidation.Tests
author | stevenhollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sat, 05 May 2012 16:39:00 +0100 |
parents | 188f8b366e87 |
children | d0c2cac12376 |
comparison
equal
deleted
inserted
replaced
96:188f8b366e87 | 97:1adc1ae981ea |
---|---|
25 | 25 |
26 #region Constructor | 26 #region Constructor |
27 | 27 |
28 public UserViewModel(UserModel model, UserModelValidator validator) | 28 public UserViewModel(UserModel model, UserModelValidator validator) |
29 { | 29 { |
30 if (model == null) throw new ArgumentNullException("model"); | |
31 if (validator == null) throw new ArgumentNullException("validator"); | |
32 | |
30 _validator = validator; | 33 _validator = validator; |
31 _data = model; | 34 _data = model; |
32 _backup = model.Clone(); | 35 _backup = model.Clone(); |
33 | 36 |
34 OkCommand = new RelayCommand(OkCommandExecute); | 37 OkCommand = new RelayCommand(OkCommandExecute); |