示例#1
0
        public void GetTest7()
        {
            InitDomainRecords();
            DomainManager target = CreateManager();

            string[] names  = TestDomainNames.ToArray();
            Domain[] actual = target.Get(names);
            Assert.Equal(names.Length, actual.Length);
            foreach (Domain dom in actual)
            {
                Assert.True(names.Contains(dom.Name));
            }
        }
示例#2
0
        public void GetTest6()
        {
            InitDomainRecords();
            DomainManager target = CreateManager();

            string[] names = TestDomainNames.ToArray();
            using (ConfigDatabase db = CreateConfigDatabase())
            {
                Domain[] actual = target.Get(db, names).ToArray();
                Assert.Equal(names.Length, actual.Length);
                foreach (Domain dom in actual)
                {
                    Assert.True(names.Contains(dom.Name));
                }
            }
        }