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

ShouldNot_LogonUser_WhenSuchUserDoesNotExistAndVerify() private method

        public void ShouldNot_LogonUser_WhenSuchUserDoesNotExistAndVerify()
        {
            this.cryptoProvider = new CryptoProvider();
            const string Username = "username";
            const string Password = "password";
            this.userRepositoryMock.Setup(x => x.GetByName(Username)).Returns((User)null);

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

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