public void OtpGenerator_ValidUserIdAndDate_SuccessfullyCheckedRemainingSeconds(string userId, DateTime date, long expected)
        {
            // Arrange
            IOtpGenerator otpGenerator = new OtpGenerator();
            var           otp          = otpGenerator.GenerateOtp(userId, date);

            // Act
            var result = otpGenerator.GetOtpRemainingSeconds(userId, otp);

            // Assert
            Assert.Equal(expected, result);
        }
        public void OtpGenerator_ValidUserIdAndDateUtcNow_RemainingSecondsGreaterThanZeroAndSmallerOrEqualThanThirty()
        {
            // Arrange
            IOtpGenerator otpGenerator = new OtpGenerator();
            var           userId       = "1233445";
            var           date         = DateTime.UtcNow;
            var           otp          = otpGenerator.GenerateOtp(userId, date);

            // Act
            var result = otpGenerator.GetOtpRemainingSeconds(userId, otp);

            // Assert
            Assert.True(result > 0 && result <= 30);
        }