Ejemplo n.º 1
0
        public void TestJoinComplex()
        {
            string joined = ScopeUtils.Join(
                new List <string>
            {
                "scope1",
                "r2/scope2",
                "https://foo.com/.default"
            });

            Assert.AreEqual("scope1 r2/scope2 https://foo.com/.default", joined);
        }
Ejemplo n.º 2
0
        public void TestJoinSimple()
        {
            string joined = ScopeUtils.Join(
                new List <string>
            {
                "a",
                "b",
                "c"
            });

            Assert.AreEqual("a b c", joined);
        }
Ejemplo n.º 3
0
 private void AddScopeQueryParam(QueryParameterBuilder builder)
 {
     builder.AddQueryPair("scope", ScopeUtils.Join(_authenticationParameters.RequestedScopes));
 }
Ejemplo n.º 4
0
        public void TestJoinEmpty()
        {
            string joined = ScopeUtils.Join(new List <string>());

            Assert.AreEqual(string.Empty, joined);
        }