예제 #1
0
        public void CountTest()
        {
            InitDomainRecords();
            DomainManager mgr = CreateManager();

            Assert.Equal(MAXDOMAINCOUNT, mgr.Count());
        }
예제 #2
0
        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));
        }
예제 #3
0
 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));
     }
 }