Ejemplo n.º 1
0
        public async Task AuthenticateCredentialsAsyncWithInvalidCredentialsFalse()
        {
            var authentication = new AuthenticationService();
            var success        = await authentication.AuthenticateCredentialsAsync(new Credentials("sfsfsdfsdf", "sdfopsdf"));

            Assert.False(success);
        }
Ejemplo n.º 2
0
        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);
        }