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 33 34 35 36 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {
appInstall, DEFAULT_ACCESS_TOKEN, DEFAULT_CLIENT_ID, DEFAULT_CLIENT_SECRET, DEFAULT_USER,
} from '@orchesty/nodejs-connectors/test/DataProvider';
import {
container, db, oauth2Provider, sender,
} from '@orchesty/nodejs-connectors/test/TestAbstract';
import CoreFormsEnum from '@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum';
import { ACCESS_TOKEN } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Provider/OAuth2/OAuth2Provider';
import { TOKEN } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/Basic/ABasicApplication';
import { CLIENT_ID, CLIENT_SECRET } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/OAuth2/IOAuth2Application';
import MYOBGetEmployeeBatch from '../src/Batch/MYOBGetEmployeeBatch';
import MYOBApplication, { NAME } from '../src/MYOBApplication';
export default function init(): void {
appInstall(NAME, DEFAULT_USER, {
[CoreFormsEnum.AUTHORIZATION_FORM]: {
[CLIENT_ID]: DEFAULT_CLIENT_ID,
[CLIENT_SECRET]: DEFAULT_CLIENT_SECRET,
[TOKEN]: {
[ACCESS_TOKEN]: DEFAULT_ACCESS_TOKEN,
},
},
});
const app = new MYOBApplication(oauth2Provider);
container.setApplication(app);
const getEmployee = new MYOBGetEmployeeBatch();
getEmployee
.setSender(sender)
.setDb(db)
.setApplication(app);
container.setBatch(getEmployee);
}
|