public void HashShouldSucceed() { // Arrange IPasswordProvider passwordProvider = new PasswordProvider(); var password = "******"; // Act var result = passwordProvider.Hash(password); // Assert result.Should().NotBeNull(); }
public void VerifyShouldReturnTrue() { // Arrange IPasswordProvider passwordProvider = new PasswordProvider(); var password = "******"; var passwordHashed = passwordProvider.Hash(password); // Act var result = passwordProvider.Verify(password, passwordHashed); // Assert result.Should().BeTrue(); }