Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x | import { appInstall, DEFAULT_ACCESS_TOKEN, DEFAULT_USER } from '@orchesty/nodejs-connectors/test/DataProvider';
import { container, db, sender } from '@orchesty/nodejs-connectors/test/TestAbstract';
import CoreFormsEnum from '@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum';
import HumaansListCompaniesBatch from '../src/Batch/HumaansListCompaniesBatch';
import HumaansListPeopleBatch from '../src/Batch/HumaansListPeopleBatch';
import HumaansApplication, { APPLICATION_TOKEN, NAME as HUMAANS_APP } from '../src/HumaansApplication';
export default function init(): void {
appInstall(HUMAANS_APP, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
[APPLICATION_TOKEN]: DEFAULT_ACCESS_TOKEN,
},
});
const app = new HumaansApplication();
container.setApplication(app);
const listCompany = new HumaansListCompaniesBatch();
const listPeople = new HumaansListPeopleBatch();
listCompany
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setBatch(listCompany);
listPeople
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setBatch(listPeople);
}
|