Пример #1
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;
 }
Пример #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();
 }