BinaryStudio.TaskManager.Logic.Tests.UserProcessorTests.ShouldNot_LogonUser_WhenSuchUserExistButNotVerify C# (CSharp) Method

ShouldNot_LogonUser_WhenSuchUserExistButNotVerify() private method

private ShouldNot_LogonUser_WhenSuchUserExistButNotVerify ( ) : void
return void
        public void ShouldNot_LogonUser_WhenSuchUserExistButNotVerify()
        {
            this.cryptoProvider = new CryptoProvider();
            const string Username = "username";
            const string Password = "password";
            const string Email = "[email protected]";
            const int Id = 100500;

            var salt = this.cryptoProvider.CreateSalt();
            var user = new User
            {
                Id = Id,
                UserName = Username,
                Email = Email,
                Credentials = new Credentials
                {
                    Salt = salt,
                    Passwordhash = this.cryptoProvider.CreateCryptoPassword(Password, salt),
                    IsVerify = false
                }
            };
            this.userRepositoryMock.Setup(x => x.GetByName(Username)).Returns(user);

            // act
            var result = this.userProcessor.LogOnUser(Username, Password);

            // arrange
            Assert.AreEqual(result, false);
        }
    }