2024-01-17 14:33:03 +01:00
|
|
|
import { Db } from '../../server-impl';
|
2023-11-08 14:50:12 +01:00
|
|
|
import { ChangeRequestSegmentUsageReadModel } from './sql-change-request-segment-usage-read-model';
|
|
|
|
import { FakeChangeRequestSegmentUsageReadModel } from './fake-change-request-segment-usage-read-model';
|
|
|
|
import { IChangeRequestSegmentUsageReadModel } from './change-request-segment-usage-read-model';
|
|
|
|
|
2023-11-09 12:09:39 +01:00
|
|
|
export const createChangeRequestSegmentUsageReadModel = (
|
2023-11-08 14:50:12 +01:00
|
|
|
db: Db,
|
|
|
|
): IChangeRequestSegmentUsageReadModel => {
|
|
|
|
return new ChangeRequestSegmentUsageReadModel(db);
|
|
|
|
};
|
|
|
|
|
2023-11-09 12:09:39 +01:00
|
|
|
export const createFakeChangeRequestSegmentUsageReadModel =
|
2023-11-08 14:50:12 +01:00
|
|
|
(): IChangeRequestSegmentUsageReadModel => {
|
|
|
|
return new FakeChangeRequestSegmentUsageReadModel();
|
|
|
|
};
|