Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var parser = new CommandLineParser(new FluentCommandLineParser());

            parser.Parse(args);

            var inquisitor = new GithubInquisitor("erikdietrich", Environment.GetEnvironmentVariable("GithubPass", EnvironmentVariableTarget.User));
            var searcher   = new ProfileSearcher(inquisitor);
            var evaluator  = new ProfileEvaluator();


            var candidates = searcher.GetProfilesForLocationByTechnology(parser.Location, parser.Language);

            foreach (var candidate in candidates)
            {
                WriteLine($"Candidate is named {candidate.FirstName} {candidate.LastName} and email address is {candidate.EmailAddress}");
                foreach (var repo in candidate.Repos)
                {
                    WriteLine($"\tRepository named {repo.Name} can be downloaded at {repo.DownloadUrl}.");
                }

                var wordToUse = evaluator.IsProfileAMatch(candidate) ? "is" : " is not";
                WriteLine($"Candidate {wordToUse} a match.");
            }

            ReadLine();
        }
        public void BeforeEachTest()
        {
            Target = new ProfileEvaluator();

            Profile = new Profile();
        }
Ejemplo n.º 3
0
        public void BeforeEachTest()
        {
            Target = new ProfileEvaluator();

            Profile = new Profile();
        }