public async Task AuthenticateCredentialsAsyncWithInvalidCredentialsFalse() { var authentication = new AuthenticationService(); var success = await authentication.AuthenticateCredentialsAsync(new Credentials("sfsfsdfsdf", "sdfopsdf")); Assert.False(success); }
public async Task AuthenticateCredentialsAsyncWithValidCredentialsTrue() { var credentialsService = new EnvironmentVariableCredentialsService(); var credentials = await credentialsService.GetCredentialsAsync(); var authentication = new AuthenticationService(); var success = await authentication.AuthenticateCredentialsAsync(credentials); Assert.True(success); }