public void GetEntriesForQuery_queryNull_throwsArgumentNullException()
 {
     var config = new ADConfiguration() {
         RootEntryUri = new Uri( "LDAP://mycopany.com/DC=mycopmany,DC=com" )
     };
     var provider = new DepartmentADPhoneBookSearchProvider( 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 DepartmentADPhoneBookSearchProvider( config );
     Assert.IsNotNull( provider.Configuration );
 }
 public void Constructor_noConfig_throwsArgumentNullException()
 {
     var provider = new DepartmentADPhoneBookSearchProvider( null );
 }
 public void Constructor_configSet_NoRootEntryUri_throwsArgumentNullException()
 {
     var provider = new DepartmentADPhoneBookSearchProvider( new ADConfiguration() );
 }