Esempio n. 1
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;
 }
Esempio n. 2
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> >());
 }