コード例 #1
0
 public PaymentService(ILogger <PaymentService> logger, IRequestValidator <PaymentRequest> requestValidator, IPaymentExecutionService paymentExecutionService, IDynamoDbRepository <PaymentResult> repository)
 {
     _logger                  = logger;
     _requestValidator        = requestValidator;
     _paymentExecutionService = paymentExecutionService;
     _repository              = repository;
 }
コード例 #2
0
        public void Init()
        {
            var accessKey = Environment.GetEnvironmentVariable("AWS_ACCESS_KEY");
            var secretKey = Environment.GetEnvironmentVariable("AWS_SECRET_KEY");

            var region      = RegionEndpoint.USEast2;
            var credentials = new BasicAWSCredentials(accessKey, secretKey);

            _repository = new BaseDynamoDbRepository <ExerciseDbModel>("Exercise", credentials, region);
        }
コード例 #3
0
 public AuthManager(IDynamoDbRepository <UserAuth> authRepository,
                    IDynamoDbRepository <UserFacebook> oAuthRepository,
                    IDynamoDbRepository <BlockedUser> blockedRepository,
                    ITokenValidator tokenValidator,
                    ITokenBuilder tokenBuilder)
 {
     _authRepository    = authRepository;
     _oAuthRepository   = oAuthRepository;
     _blockedRepository = blockedRepository;
     _tokenValidator    = tokenValidator;
     _tokenBuilder      = tokenBuilder;
 }
コード例 #4
0
        public DynamoDbTestFixture()
        {
            Environment.SetEnvironmentVariable("AWS_ACCESS_KEY_ID", "abc");
            Environment.SetEnvironmentVariable("AWS_SECRET_ACCESS_KEY", "def");

            _configuration = new DynamoDbConfiguration <TestEntity>
            {
                PartitionKey = "PartitionKey",
                SortKey      = "SortKey",
                TableName    = "Test"
            };

            _dynamoDbClient = new AmazonDynamoDBClient(new EnvironmentVariablesAWSCredentials(), new AmazonDynamoDBConfig
            {
                UseHttp    = true,
                ServiceURL = "http://localhost:8042/"
            });

            var logger = new Mock <ILogger <DynamoDbRepository <TestEntity> > >();

            Repository = new DynamoDbRepository <TestEntity>(_dynamoDbClient, _configuration, logger.Object);
        }
コード例 #5
0
 public NotificationsManager(IConfiguration configuration, IDynamoDbRepository <Notification> notificationsRepository)
 {
     _notificationsRepository = notificationsRepository;
 }
コード例 #6
0
 public IdentiryManager(IDynamoDbRepository <User> usersIdentityRepository)
 {
     _usersIdentityRepository = usersIdentityRepository;
 }
コード例 #7
0
 public BlockedUsersManager(IDynamoDbRepository <BlockedUser> blockedUsersRepository)
 {
     _blockedUsersRepository = blockedUsersRepository;
 }
コード例 #8
0
 public DeliveryService(IDynamoDbRepository <DeliveryRecord> repository)
 {
     _repository = repository;
 }
コード例 #9
0
 public TokenBuilder(IDynamoDbRepository <TokenHistory> tokenReposirory)
 {
     _tokenReposirory = tokenReposirory;
 }
コード例 #10
0
 public DynamoDbService(IDynamoDbRepository <TEntity, TKey> repository)
 {
     _repository = repository;
 }
コード例 #11
0
 public DynamoDbService(IDynamoDbRepository <TDTO> dynamoDbRepository, IMapper mapper)
 {
     _dynamoDbRepository = dynamoDbRepository;
     Mapper = mapper;
 }
コード例 #12
0
 public DeliveryStateService(ILogger <DeliveryStateService> logger, IDynamoDbRepository <DeliveryRecord> repository)
 {
     _logger     = logger;
     _repository = repository;
 }