private bool RemoveBricksetUser(string username)
        {
            if (string.IsNullOrWhiteSpace(username) ||
                !_bricksetUserRepository.Exists(username))
            {
                return(false);
            }

            _bricksetUserRepository.Remove(username);

            return(true);
        }
示例#2
0
        public void Remove_InvalidUsername_ReturnsFalse(string username)
        {
            var removedUser = _bricksetUserRepository.Remove(username);

            Check.That(removedUser).IsFalse();
        }