コード例 #1
0
 public RememberWhenApplicationService(
     IParameterManagementService parameterManagementService,
     IEnvironmentManagementService environmentService,
     IMemoryService memoryService,
     IEmailService emailService,
     ITextMessageService textMessageService)
 {
     _environmentService         = environmentService;
     _parameterManagementService = parameterManagementService;
     _memoryService      = memoryService;
     _emailService       = emailService;
     _textMessageService = textMessageService;
 }
コード例 #2
0
        public SSMParameterManagementServiceTests()
        {
            _ssmMock = new Mock <IAmazonSimpleSystemsManagement>();
            _ssmMock.Setup(m => m.GetParameterAsync(
                               It.Is <GetParameterRequest>(x => x.WithDecryption == true),
                               It.IsAny <CancellationToken>()))
            .ReturnsAsync((GetParameterRequest req, CancellationToken t) => new GetParameterResponse
            {
                HttpStatusCode = HttpStatusCode.OK,
                Parameter      = new Parameter
                {
                    Name  = req.Name,
                    Value = req.Name + "Value"
                }
            });

            _sut = new SSMParameterManagementService(_ssmMock.Object);
        }
コード例 #3
0
 public TwilioTextMessageService(IParameterManagementService parameterManagementService)
 {
     _parameterManagementService = parameterManagementService;
 }