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)); } }
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)); } } }