public void ShouldNotAttemptToRegisterIfConfirmPasswordNotFilledIn() { var vm = new MainVm(); Assert.That(() => vm.Register(_username, _email, _confirmEmail, _password, string.Empty, _basicroles), Throws.Exception); }
public void ShouldNotAttemptToRegisterIfRolesNotFilledIn() { var vm = new MainVm(); Assert.That(() => vm.Register(_username, _email, _confirmEmail, _password, string.Empty, new Dictionary<string, bool>()), Throws.Exception); }
public MainWindow() { InitializeComponent(); _mainVm = new MainVm(); DataContext = _mainVm; }