public TableEntityAdapterFactoryTests() { _factory = new TableEntityAdapterFactory(); _entityType = new Model().AddEntityType(typeof(PocoTestType)); _entityType.GetOrAddProperty("PartitionKey", typeof(string)); _entityType.GetOrAddProperty("RowKey", typeof(string)); _entityType.GetOrAddProperty("Timestamp", typeof(DateTimeOffset)); }
public AtsDataStore([NotNull] DbContextConfiguration configuration, [NotNull] AtsConnection connection, [NotNull] AtsQueryFactory queryFactory, [NotNull] TableEntityAdapterFactory tableEntityFactory) : base(configuration) { Check.NotNull(connection, "connection"); Check.NotNull(queryFactory, "queryFactory"); Check.NotNull(tableEntityFactory, "tableEntityFactory"); _queryFactory = queryFactory; EntityFactory = tableEntityFactory; Connection = connection; }
/// <summary> /// Provided only for testing purposes. Do not use. /// </summary> protected AtsDataStore(AtsConnection connection, TableEntityAdapterFactory entityFactory) { Connection = connection; EntityFactory = entityFactory; }
/// <summary> /// Provided only for testing purposes. Do not use. /// </summary> protected AtsDataStore(DbContextConfiguration configuration, AtsConnection connection, TableEntityAdapterFactory entityFactory) { _configuration = configuration; Connection = connection; EntityFactory = entityFactory; }