2024-03-05 14:45:41 +01:00
|
|
|
import { ISegmentStore } from '../../lib/features/segment/segment-store-type';
|
2024-03-05 11:15:22 +01:00
|
|
|
import { IFeatureStrategySegment, ISegment } from '../../lib/types/model';
|
2022-03-29 14:59:14 +02:00
|
|
|
|
|
|
|
export default class FakeSegmentStore implements ISegmentStore {
|
2022-10-25 13:10:27 +02:00
|
|
|
count(): Promise<number> {
|
|
|
|
return Promise.resolve(0);
|
|
|
|
}
|
|
|
|
|
2022-03-29 14:59:14 +02:00
|
|
|
create(): Promise<ISegment> {
|
|
|
|
throw new Error('Method not implemented.');
|
|
|
|
}
|
|
|
|
|
|
|
|
async delete(): Promise<void> {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
async deleteAll(): Promise<void> {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
async exists(): Promise<boolean> {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
get(): Promise<ISegment> {
|
|
|
|
throw new Error('Method not implemented.');
|
|
|
|
}
|
|
|
|
|
|
|
|
async getAll(): Promise<ISegment[]> {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
async getByStrategy(): Promise<ISegment[]> {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
update(): Promise<ISegment> {
|
|
|
|
throw new Error('Method not implemented.');
|
|
|
|
}
|
|
|
|
|
|
|
|
addToStrategy(): Promise<void> {
|
|
|
|
throw new Error('Method not implemented.');
|
|
|
|
}
|
|
|
|
|
|
|
|
removeFromStrategy(): Promise<void> {
|
|
|
|
throw new Error('Method not implemented.');
|
|
|
|
}
|
|
|
|
|
|
|
|
async getAllFeatureStrategySegments(): Promise<IFeatureStrategySegment[]> {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
2022-04-06 15:01:50 +02:00
|
|
|
async existsByName(): Promise<boolean> {
|
|
|
|
throw new Error('Method not implemented.');
|
|
|
|
}
|
|
|
|
|
2022-03-29 14:59:14 +02:00
|
|
|
destroy(): void {}
|
|
|
|
}
|