public void GetEntriesForQuery_queryNull_throwsArgumentNullException()
 {
     var config = new ADConfiguration() {
         RootEntryUri = new Uri( "LDAP://mycopany.com/DC=mycopmany,DC=com" )
     };
     var provider = new NameADPhoneBookSearchProvider( config );
     provider.GetEntriesForQuery( null );
 }
 public void Constructor_configSet_configSet()
 {
     var config = new ADConfiguration() {
         RootEntryUri = new Uri( "LDAP://mycopany.com/DC=mycopmany,DC=com" )
     };
     var provider = new NameADPhoneBookSearchProvider( config );
     Assert.IsNotNull( provider.Configuration );
 }
 public void Constructor_noConfig_throwsArgumentNullException()
 {
     var provider = new NameADPhoneBookSearchProvider( null );
 }
 public void Constructor_configSet_NoRootEntryUri_throwsArgumentNullException()
 {
     var provider = new NameADPhoneBookSearchProvider( new ADConfiguration() );
 }