feat: Use an IdentifierStrategy in InMemoryDataAccessor

Now it's also possible to support multiple root containers.
This commit is contained in:
Joachim Van Herwegen
2021-02-12 11:27:20 +01:00
parent 29df380396
commit a28fb0258f
4 changed files with 104 additions and 66 deletions

View File

@@ -35,9 +35,10 @@ describe('A LockingResourceStore', (): void => {
const base = 'http://test.com/';
path = `${base}path`;
const idStrategy = new SingleRootIdentifierStrategy(base);
source = new DataAccessorBasedStore(
new InMemoryDataAccessor(base),
new SingleRootIdentifierStrategy(base),
new InMemoryDataAccessor(idStrategy),
idStrategy,
strategy,
);