public void CheckUniqueHashes() { var userUniqueId = new UserUniqueId(); string hash1 = userUniqueId.New(); string hash2 = userUniqueId.New(); Assert.That(hash1, Is.Not.EqualTo(hash2)); }
private string GenerateNewUserUnique(HttpContextBase httpContext) { string result = _userUniqueId.New(); AddCookie(httpContext, result); return(result); }
public void CheckHashLen() { var userUniqueId = new UserUniqueId(); string hash = userUniqueId.New(); Assert.That(hash.Length, Is.EqualTo(UserUniqueId.USER_HASH_LEN)); }
public void New() { var userUniqueId = new UserUniqueId(); string hash = userUniqueId.New(); Assert.That(hash, Is.Not.Null); Assert.That(hash, Is.Not.EqualTo(string.Empty)); }