Exemplo n.º 1
0
        public void CheckLoginStatus_DoesntContainUser_ReturnsFalse()
        {
            // Arrange

            var user = Substitute.For <IUser>();

            user.Username = "******";
            user.Password = "******";

            _fakeUserCache.ConfirmAndRefresh(user.Username, user.Password).Returns(false);

            // Act and assert

            Assert.That(_uut.CheckLoginStatus(user.Username, user.Password), Is.EqualTo(false));
        }
 public bool CheckLoginStatus(string username, string password)
 {
     return(_userCache.ConfirmAndRefresh(username, password));
 }