Register() public method

public Register ( string username, string email, string confirmEmail, string password, string confirmpassword, bool>.Dictionary roles ) : void
username string
email string
confirmEmail string
password string
confirmpassword string
roles bool>.Dictionary
return void
Exemplo n.º 1
0
        public void ShouldNotAttemptToRegisterIfRolesNotFilledIn()
        {
            var vm = new MainVm();

            Assert.That(() => vm.Register(_username, _email, _confirmEmail, _password, string.Empty, new Dictionary<string, bool>()),
                Throws.Exception);
        }
Exemplo n.º 2
0
        public void ShouldNotAttemptToRegisterIfConfirmPasswordNotFilledIn()
        {
            var vm = new MainVm();

            Assert.That(() => vm.Register(_username, _email, _confirmEmail, _password, string.Empty, _basicroles),
                Throws.Exception);
        }