public PaymentService(ILogger <PaymentService> logger, IRequestValidator <PaymentRequest> requestValidator, IPaymentExecutionService paymentExecutionService, IDynamoDbRepository <PaymentResult> repository) { _logger = logger; _requestValidator = requestValidator; _paymentExecutionService = paymentExecutionService; _repository = repository; }
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); }
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; }
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); }
public NotificationsManager(IConfiguration configuration, IDynamoDbRepository <Notification> notificationsRepository) { _notificationsRepository = notificationsRepository; }
public IdentiryManager(IDynamoDbRepository <User> usersIdentityRepository) { _usersIdentityRepository = usersIdentityRepository; }
public BlockedUsersManager(IDynamoDbRepository <BlockedUser> blockedUsersRepository) { _blockedUsersRepository = blockedUsersRepository; }
public DeliveryService(IDynamoDbRepository <DeliveryRecord> repository) { _repository = repository; }
public TokenBuilder(IDynamoDbRepository <TokenHistory> tokenReposirory) { _tokenReposirory = tokenReposirory; }
public DynamoDbService(IDynamoDbRepository <TEntity, TKey> repository) { _repository = repository; }
public DynamoDbService(IDynamoDbRepository <TDTO> dynamoDbRepository, IMapper mapper) { _dynamoDbRepository = dynamoDbRepository; Mapper = mapper; }
public DeliveryStateService(ILogger <DeliveryStateService> logger, IDynamoDbRepository <DeliveryRecord> repository) { _logger = logger; _repository = repository; }