public void CountTest() { InitDomainRecords(); DomainManager mgr = CreateManager(); Assert.Equal(MAXDOMAINCOUNT, mgr.Count()); }
public void AddTest2() { DomainManager target = CreateManager(); target.RemoveAll(); Assert.Equal(0, target.Count()); string name = BuildDomainName(GetRndDomainID()); target.Add(name); Assert.NotNull(target.Get(name)); }
public void AddTest3() { using (ConfigDatabase db = CreateConfigDatabase()) { DomainManager target = CreateManager(); target.RemoveAll(); Assert.Equal(0, target.Count()); string name = BuildDomainName(GetRndDomainID()); target.Add(db, name); db.SubmitChanges(); Assert.NotNull(target.Get(name)); } }