public async Task IsPasswordPwned_WhenCalledWithSecurePassword_ReturnsFalse() { // Arrange IHaveIBeenPwnedClient client = new HaveIBeenPwnedClient(); // Act bool isPwnedPassword = await client.IsPasswordPwned("AV3ryLongS3cureP4ssw0rd(H0p3fully)"); // Assert Assert.IsFalse(isPwnedPassword); }
public async Task IsPasswordPwned_WhenCalledWithPwnedPassword_ReturnsTrue() { // Arrange IHaveIBeenPwnedClient client = new HaveIBeenPwnedClient(); // Act bool isPwnedPassword = await client.IsPasswordPwned("password123"); // Assert Assert.IsTrue(isPwnedPassword); }