public void IntegrationTest_TrackViaClient_CompletePasswordAuthorization() { TestHelper.EnsureProductionValuesBeforeRunningIntegrationTests(); // Assemble // Act TrackViaClient client = new TrackViaClient(IntegrationTestConfig.TRACKVIA_HOSTNAME, IntegrationTestConfig.TRACKVIA_USERNAME, IntegrationTestConfig.TRACKVIA_PASSWORD, IntegrationTestConfig.TRACKVIA_API_KEY); // Assert client.ShouldNotBeNull(); client.ValidateLastGoodTokenHasNotExpired(DateTime.Now).ShouldBeTrue("last good token should still be valid"); client.ValidateAccessTokenIsPresent().ShouldBeTrue("access token is not present"); }