public HomeController(PasswordRetriever retriever, IProfileSearcher searcher = null)
 {
     if (searcher == null)
     {
         var githubPassword = retriever.GetPassword("GithubPass");
         var inquisitor = new GithubInquisitor("erikdietrich", githubPassword);
         _searcher = new ProfileSearcher(inquisitor);
     }
     else
         _searcher = searcher;
 }
Exemple #2
0
 public HomeController(PasswordRetriever retriever, IProfileSearcher searcher = null)
 {
     if (searcher == null)
     {
         var githubPassword = retriever.GetPassword("GithubPass");
         var inquisitor     = new GithubInquisitor("erikdietrich", githubPassword);
         _searcher = new ProfileSearcher(inquisitor);
     }
     else
     {
         _searcher = searcher;
     }
 }
 public void BeforeEachTest()
 {
     Target = new PasswordRetriever();
 }