Example #1
0
        public void GetSha1_CreatesCorrectHash(string input, string hash)
        {
            // Act
            string result = SportivityHashUtil.GetSha1(input);

            // Assert
            Assert.Equal(hash, result);
        }
Example #2
0
 protected SportivityRequest(UserOption user)
 {
     User     = user.User;
     Password = user.Password;
     Hash     = SportivityHashUtil.GetSha1($"moshi moshi {user.User} desu");
 }