public HomeController( ILogger <HomeController> logger, ICommsService commsService) { _logger = logger; _commsService = commsService; }
public UsersService(ApplicationDbContext dbContext, IEncrypter encrypter, IUserInfoProvider userInfoProvider, IPolicy <RegisterUserModel> registerUserPolicy, IPolicy <RegisterDomainUserModel> registerDomainUserPolicy, IPolicy <UpdateUserModel> updateUserPolicy, IPolicy <PasswordResetRequestModel> requestPasswordResetPolicy, IPolicy <ResetPasswordModel> resetPasswordPolicy, IPolicy <PasswordModel> passwordPolicy, ICommsService commsService, IConfigurationRoot configurationRoot) { this.dbContext = dbContext; this.encrypter = encrypter; this.userInfoProvider = userInfoProvider; this.registerUserPolicy = registerUserPolicy; this.registerDomainUserPolicy = registerDomainUserPolicy; this.updateUserPolicy = updateUserPolicy; this.requestPasswordResetPolicy = requestPasswordResetPolicy; this.passwordPolicy = passwordPolicy; this.resetPasswordPolicy = resetPasswordPolicy; this.commsService = commsService; this.configurationRoot = configurationRoot; this.websiteConfiguration = new WebsiteConfiguration(); configurationRoot.GetSection("WebsiteConfiguration").Bind(websiteConfiguration); }
public When_the_messaging_service_processes_an_LRAP1_submission() { //Arrange _fakeCommsService = A.Fake <ICommsService>(); _fakeMessageSender = A.Fake <ISendMessages>(); _sut = new Lrap1Processor(_fakeMessageSender, _fakeCommsService); _command = new SubmitLrap1Command() { ApplicationId = "123456789", Username = "******", Password = "******", Payload = "Payload" }; }
public When_the_messaging_service_processes_an_LRAP1Attachment_submission() { //Arrange _fakeCommsService = A.Fake<ICommsService>(); _fakeMessageSender = A.Fake<ISendMessages>(); _sut = new Lrap1Processor(_fakeMessageSender, _fakeCommsService); _command = new SubmitLrap1AttachmentCommand() { AttachmentId = "9876543210", ApplicationId = "123456789", Username = "******", Password = "******", Payload = "Payload" }; }
public NoticeController(ICommsService commsService) { _commsService = commsService; }
public Lrap1Processor(ISendMessages messageSender, ICommsService commsService) { _messageSender = messageSender; _commsService = commsService; }