Example #1
0
 public UserLocationSetter(IPockyUserRepository pockyUserRepository, ILocationRepository locationRepository,
                           IUserLocationRepository userLocationRepository, IChatHelper chatHelper)
 {
     _pockyUserRepository    = pockyUserRepository;
     _locationRepository     = locationRepository;
     _userLocationRepository = userLocationRepository;
     _chatHelper             = chatHelper;
 }
Example #2
0
 public Status(IPockyUserRepository pockyUserRepository, IConfigRepository configRepository,
               IPegHelper pegHelper, ILogger <Status> logger)
 {
     _pockyUserRepository = pockyUserRepository;
     _configRepository    = configRepository;
     _pegHelper           = pegHelper;
     _logger = logger;
 }
Example #3
0
 public StatusTests()
 {
     _pockyUserRepository = Substitute.For <IPockyUserRepository>();
     _configRepository    = Substitute.For <IConfigRepository>();
     _pegHelper           = Substitute.For <IPegHelper>();
     _subject             = new Status(_pockyUserRepository, _configRepository, _pegHelper,
                                       Substitute.For <ILogger <Status> >());
 }
Example #4
0
 public Results(IPockyUserRepository pockyUserRepository, IPegResultsHelper pegResultsHelper,
                IResultsFileGenerator resultsFileGenerator, ILogger <Results> logger)
 {
     _pockyUserRepository  = pockyUserRepository;
     _pegResultsHelper     = pegResultsHelper;
     _resultsFileGenerator = resultsFileGenerator;
     _logger = logger;
 }
Example #5
0
 public UserLocation(IPockyUserRepository pockyUserRepository, IUserLocationGetter userLocationGetter,
                     IUserLocationSetter userLocationSetter, IUserLocationDeleter userLocationDeleter)
 {
     _pockyUserRepository = pockyUserRepository;
     _userLocationGetter  = userLocationGetter;
     _userLocationSetter  = userLocationSetter;
     _userLocationDeleter = userLocationDeleter;
 }
Example #6
0
        public RoleConfigTests()
        {
            _pockyUserRepository = Substitute.For <IPockyUserRepository>();
            _chatHelper          = Substitute.For <IChatHelper>();
            _chatHelper.People.Returns(Substitute.For <IPersonHandler>());

            _subject = new RoleConfig(_pockyUserRepository, _chatHelper);
        }
 public UserLocationTests()
 {
     _pockyUserRepository = Substitute.For <IPockyUserRepository>();
     _userLocationGetter  = Substitute.For <IUserLocationGetter>();
     _userLocationSetter  = Substitute.For <IUserLocationSetter>();
     _userLocationDeleter = Substitute.For <IUserLocationDeleter>();
     _subject             = new UserLocation(_pockyUserRepository, _userLocationGetter, _userLocationSetter, _userLocationDeleter);
 }
        public UsernameUpdaterTests()
        {
            _personHandler       = Substitute.For <IPersonHandler>();
            _pockyUserRepository = Substitute.For <IPockyUserRepository>();
            _subject             = new UsernameUpdater(_personHandler, _pockyUserRepository);

            _inputPockyUsers = new List <PockyUser>();
        }
Example #9
0
        public TriggerResponseTesterTests()
        {
            _settings            = new PockyBotSettings();
            _pockyUserRepository = Substitute.For <IPockyUserRepository>();
            var options = Substitute.For <IOptions <PockyBotSettings> >();

            options.Value.Returns(_settings);
            _subject = new TriggerResponseTester(options, _pockyUserRepository);
        }
Example #10
0
 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);
 }
Example #11
0
 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;
 }
Example #12
0
        public HelpTests()
        {
            var pockyUserSettings = Substitute.For <IOptions <PockyBotSettings> >();

            pockyUserSettings.Value.Returns(new PockyBotSettings
            {
                BotName = BotName
            });
            _pockyUserRepository = Substitute.For <IPockyUserRepository>();
            _configRepository    = Substitute.For <IConfigRepository>();
            _subject             = new Help(_pockyUserRepository, pockyUserSettings, _configRepository);
        }
Example #13
0
 public Peg(IPegRequestValidator pegRequestValidator, IPockyUserRepository pockyUserRepository,
            IPegHelper pegHelper, IConfigRepository configRepository, IChatHelper chatHelper,
            IPegGiver pegGiver, ILogger <Peg> logger)
 {
     _pegRequestValidator = pegRequestValidator;
     _pockyUserRepository = pockyUserRepository;
     _pegHelper           = pegHelper;
     _configRepository    = configRepository;
     _chatHelper          = chatHelper;
     _pegGiver            = pegGiver;
     _logger = logger;
 }
Example #14
0
 public PegTests()
 {
     _pegRequestValidator = Substitute.For <IPegRequestValidator>();
     _pockyUserRepository = Substitute.For <IPockyUserRepository>();
     _pegHelper           = Substitute.For <IPegHelper>();
     _configRepository    = Substitute.For <IConfigRepository>();
     _chatHelper          = Substitute.For <IChatHelper>();
     _chatHelper.People.Returns(Substitute.For <IPersonHandler>());
     _pegGiver = Substitute.For <IPegGiver>();
     _subject  = new NET.Services.Triggers.Peg(_pegRequestValidator, _pockyUserRepository, _pegHelper,
                                               _configRepository, _chatHelper, _pegGiver, Substitute.For <ILogger <NET.Services.Triggers.Peg> >());
 }
Example #15
0
 public RemoveUser(IPockyUserRepository pockyUserRepository, ILogger <RemoveUser> logger)
 {
     _pockyUserRepository = pockyUserRepository;
     _logger = logger;
 }
Example #16
0
 public UserLocationGetterTests()
 {
     _pockyUserRepository = Substitute.For <IPockyUserRepository>();
     _subject             = new UserLocationGetter(_pockyUserRepository);
 }
Example #17
0
 public TriggerResponseTester(IOptions <PockyBotSettings> settings, IPockyUserRepository pockyUserRepository)
 {
     _settings            = settings.Value;
     _pockyUserRepository = pockyUserRepository;
 }
 public UserLocationGetter(IPockyUserRepository pockyUserRepository)
 {
     _pockyUserRepository = pockyUserRepository;
 }
Example #19
0
 public RoleConfig(IPockyUserRepository pockyUserRepository, IChatHelper chatHelper)
 {
     _pockyUserRepository = pockyUserRepository;
     _chatHelper          = chatHelper;
 }
Example #20
0
 public Help(IPockyUserRepository pockyUserRepository, IOptions <PockyBotSettings> pockySettings, IConfigRepository configRepository)
 {
     _pockyUserRepository = pockyUserRepository;
     _configRepository    = configRepository;
     _pockyBotSettings    = pockySettings.Value;
 }
Example #21
0
 public UsernameUpdater(IPersonHandler personHandler, IPockyUserRepository pockyUserRepository)
 {
     _personHandler       = personHandler;
     _pockyUserRepository = pockyUserRepository;
 }
Example #22
0
 public RemoveUserTests()
 {
     _pockyUserRepository = Substitute.For <IPockyUserRepository>();
     _subject             = new RemoveUser(_pockyUserRepository, Substitute.For <ILogger <RemoveUser> >());
 }
Example #23
0
 public LocationConfigTests()
 {
     _locationRepository  = Substitute.For <ILocationRepository>();
     _pockyUserRepository = Substitute.For <IPockyUserRepository>();
     _subject             = new LocationConfig(_locationRepository, _pockyUserRepository);
 }
Example #24
0
 public LocationConfig(ILocationRepository locationRepository, IPockyUserRepository pockyUserRepository)
 {
     _locationRepository  = locationRepository;
     _pockyUserRepository = pockyUserRepository;
 }