public void RegisterNewRealm() { Realm.Register(NEW_REALM_ID, NEW_SECOND_LEVEL_DOMAIN); var realm = Realm.ValueOf(NEW_REALM_ID); Assert.Equal(NEW_REALM_ID, realm.RealmId); Assert.Equal(NEW_SECOND_LEVEL_DOMAIN, realm.SecondLevelDomain); }
public void ExistingRealmNotRegisteredAgain() { var realmsCount = Realm.Values().Length; Realm.Register(Realm.OC1.RealmId, Realm.OC1.SecondLevelDomain); Assert.Equal(realmsCount, Realm.Values().Length); var realm = Realm.ValueOf(Realm.OC1.RealmId); Assert.Equal(Realm.OC1.RealmId, realm.RealmId); Assert.Equal(Realm.OC1.SecondLevelDomain, realm.SecondLevelDomain); }