Пример #1
0
 private void AddRealm(Realm realm)
 {
     KNOWN_REALMS.Add(realm.RealmId, realm);
 }
Пример #2
0
 public static Realm[] Values()
 {
     Realm[] realms = new Realm[KNOWN_REALMS.Count];
     KNOWN_REALMS.Values.CopyTo(realms, 0);
     return(realms);
 }
Пример #3
0
 public void CannotRegisterWithExistingRealmIdAndDifferentSecondLevelDomain()
 {
     Assert.Throws <ArgumentException>(() => Realm.Register(Realm.OC1.RealmId, NEW_SECOND_LEVEL_DOMAIN));
 }