コード例 #1
0
        private ChallengeRunner GetChallengeRunner(
            IChallengeAndAnswererProvider challengeAndAnswererProvider = null,
            IChallengeExecutor challengeExecutor = null,
            IOutputter outputter = null)
        {
            challengeAndAnswererProvider = challengeAndAnswererProvider ?? new Mock <IChallengeAndAnswererProvider>().Object;
            challengeExecutor            = challengeExecutor ?? new Mock <IChallengeExecutor>().Object;
            outputter = outputter ?? new Mock <IOutputter>().Object;

            var challengeRunner = new ChallengeRunner(challengeAndAnswererProvider, challengeExecutor, outputter);

            return(challengeRunner);
        }
コード例 #2
0
 public ChallengeRunner(IChallengeAndAnswererProvider challengeAndAnswererProvider, IChallengeExecutor executor, IOutputter outputter)
 {
     _challengeAndAnswererProvider = challengeAndAnswererProvider;
     _executor  = executor;
     _outputter = outputter;
 }