Exemple #1
0
        public void ValidUserId()
        {
            string returnValue = SqlAppAuthenticationProvider.GetConnectionStringByUserId(Constants.TestUserAssignedManagedIdentityId);

            Assert.Equal(Constants.ManagedUserAssignedIdentityConnectionString, returnValue);
        }
Exemple #2
0
        public void InvalidUserId()
        {
            string returnValue = SqlAppAuthenticationProvider.GetConnectionStringByUserId("NotAGuid");

            Assert.Equal(default(string), returnValue);
        }