public UsernameUpdaterTests() { _personHandler = Substitute.For <IPersonHandler>(); _pockyUserRepository = Substitute.For <IPockyUserRepository>(); _subject = new UsernameUpdater(_personHandler, _pockyUserRepository); _inputPockyUsers = new List <PockyUser>(); }
public FinishTests() { _pockyUserRepository = Substitute.For <IPockyUserRepository>(); _pegResultsHelper = Substitute.For <IPegResultsHelper>(); _directResultsMessageSender = Substitute.For <IDirectResultsMessageSender>(); _resultsFileGenerator = Substitute.For <IResultsFileGenerator>(); _usernameUpdater = Substitute.For <IUsernameUpdater>(); _subject = new Finish(_pockyUserRepository, _pegResultsHelper, _directResultsMessageSender, _resultsFileGenerator, Substitute.For <ILogger <Finish> >(), _usernameUpdater); }
public Finish(IPockyUserRepository pockyUserRepository, IPegResultsHelper pegResultsHelper, IDirectResultsMessageSender directResultsMessageSender, IResultsFileGenerator resultsFileGenerator, ILogger <Finish> logger, IUsernameUpdater usernameUpdater) { _pockyUserRepository = pockyUserRepository; _pegResultsHelper = pegResultsHelper; _logger = logger; _usernameUpdater = usernameUpdater; _directResultsMessageSender = directResultsMessageSender; _resultsFileGenerator = resultsFileGenerator; }