Exemplo n.º 1
0
 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);
        }
Exemplo n.º 3
0
        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"
            };
        }
Exemplo n.º 5
0
 public NoticeController(ICommsService commsService)
 {
     _commsService = commsService;
 }
Exemplo n.º 6
0
 public Lrap1Processor(ISendMessages messageSender, ICommsService commsService)
 {
     _messageSender = messageSender;
     _commsService  = commsService;
 }