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