Beispiel #1
0
 public ImportTestDataHandler(
     ITestDataAccessor testData,
     IDynamoDBContext context,
     SasDynamoDbConfig config,
     IFactory <IBuilder <APIGatewayProxyResponse> > response)
 {
     _testData = testData;
     _context  = context;
     _config   = config;
     _response = response;
 }
Beispiel #2
0
        public TodoDataPrep(bool shouldPersistData)
        {
            if (shouldPersistData)
            {
                dataPersistance = new ApplicationDbTestDataAccessor();
            }
            else
            {
                dataPersistance = new NoPersistanceTestDataAccessor();
            }

            Users     = new UserPrep(dataPersistance);
            TodoLists = new TodoListPrep(dataPersistance, Users);
            TodoItems = new TodoItemPrep(dataPersistance, TodoLists);
        }
Beispiel #3
0
 public UserPrep(ITestDataAccessor dataAccessor) : base(dataAccessor)
 {
 }
Beispiel #4
0
 public TodoItemPrep(ITestDataAccessor dataAccessor, TodoListPrep todoListPrep) : base(dataAccessor)
 {
     this.todoListPrep = todoListPrep;
 }
 public TestDataItemRepository(ITestDataAccessor accessor)
 {
     _accessor = accessor;
 }
Beispiel #6
0
 public TestDataLoanRepository(ITestDataAccessor accessor)
 {
     _accessor = accessor;
 }
Beispiel #7
0
 public TypePrepBase(ITestDataAccessor dataAccessor)
 {
     this.dataAccessor = dataAccessor;
 }
Beispiel #8
0
 public TodoListPrep(ITestDataAccessor dataAccessor, UserPrep userPrep) : base(dataAccessor)
 {
     this.userPrep = userPrep;
 }