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); }
public ChallengeRunner(IChallengeAndAnswererProvider challengeAndAnswererProvider, IChallengeExecutor executor, IOutputter outputter) { _challengeAndAnswererProvider = challengeAndAnswererProvider; _executor = executor; _outputter = outputter; }