Esempio n. 1
0
 public KUser With(string key, object value)
 {
     _attributes.Add(key, IKValue.Create(value));
     return(this);
 }
Esempio n. 2
0
        public static KUser Create(string identity, IEnumerable <KUserAttribute> attributes)
        {
            var kValues = attributes.ToDictionary(x => x.Name, value => IKValue.Create(value.Value));

            return(new KUser(identity, kValues));
        }
Esempio n. 3
0
 public void Number_Value()
 {
     Assert.IsType <KNumberValue>(IKValue.Create(1));
 }
Esempio n. 4
0
 public void Boolean_Value()
 {
     Assert.IsType <KBooleanValue>(IKValue.Create(true));
 }
Esempio n. 5
0
 public void String_Value()
 {
     Assert.IsType <KStringValue>(IKValue.Create("abc"));
 }