public void GetAgain() { // Arrange AuthorizationRepository repository = new AuthorizationRepository(); string basicToken = "test:password"; // Act string nessusToken = repository.GetNessusToken(basicToken); // Assert Assert.IsNotNull(nessusToken); // Act string nessusToken1 = repository.GetNessusToken(basicToken); // Assert Assert.IsNotNull(nessusToken1); Assert.AreNotEqual(nessusToken, nessusToken1); }
public void IsValid() { // Arrange AuthorizationRepository repository = new AuthorizationRepository(); string basicToken = "test:password"; // Act string nessusToken = repository.GetNessusToken(basicToken); // Assert Assert.IsNotNull(nessusToken); Assert.IsTrue(repository.IsValidNessusToken(nessusToken)); }