private bool RemoveBricksetUser(string username) { if (string.IsNullOrWhiteSpace(username) || !_bricksetUserRepository.Exists(username)) { return(false); } _bricksetUserRepository.Remove(username); return(true); }
public void Remove_InvalidUsername_ReturnsFalse(string username) { var removedUser = _bricksetUserRepository.Remove(username); Check.That(removedUser).IsFalse(); }