-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
288 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export { robjExportSchuleFactory } from './robj-export-schule.factory'; | ||
export { robjExportKlasseFactory } from './robj-export-klasse.factory'; | ||
export { robjExportLehrerFactory } from './robj-export-lehrer.factory'; | ||
export { robjExportSchuelerFactory } from './robj-export-schueler.factory'; | ||
export { robjExportLehrerMigrationFactory } from './robj-export-lehrer-migration.factory'; | ||
export { robjExportSchuelerMigrationFactory } from './robj-export-schueler-migration.factory'; |
14 changes: 14 additions & 0 deletions
14
apps/server/src/infra/tsp-client/testing/robj-export-klasse.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ObjectId } from '@mikro-orm/mongodb'; | ||
import { RobjExportKlasse } from '@infra/tsp-client'; | ||
import { Factory } from 'fishery'; | ||
|
||
export const robjExportKlasseFactory = Factory.define<RobjExportKlasse, RobjExportKlasse>(({ sequence }) => { | ||
return { | ||
id: new ObjectId().toHexString(), | ||
version: `version ${sequence}`, | ||
klasseName: `klasseName ${sequence}`, | ||
schuleNummer: `schuleNummer ${sequence}`, | ||
klasseId: `klasseId ${sequence}`, | ||
lehrerUid: `lehrerUid ${sequence}`, | ||
}; | ||
}); |
12 changes: 12 additions & 0 deletions
12
apps/server/src/infra/tsp-client/testing/robj-export-lehrer-migration.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ObjectId } from '@mikro-orm/mongodb'; | ||
import { RobjExportLehrerMigration } from '@infra/tsp-client'; | ||
import { Factory } from 'fishery'; | ||
|
||
export const robjExportLehrerMigrationFactory = Factory.define<RobjExportLehrerMigration, RobjExportLehrerMigration>( | ||
() => { | ||
return { | ||
lehrerUidAlt: new ObjectId().toHexString(), | ||
lehrerUidNeu: new ObjectId().toHexString(), | ||
}; | ||
} | ||
); |
13 changes: 13 additions & 0 deletions
13
apps/server/src/infra/tsp-client/testing/robj-export-lehrer.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ObjectId } from '@mikro-orm/mongodb'; | ||
import { RobjExportLehrer } from '@infra/tsp-client'; | ||
import { Factory } from 'fishery'; | ||
|
||
export const robjExportLehrerFactory = Factory.define<RobjExportLehrer, RobjExportLehrer>(({ sequence }) => { | ||
return { | ||
lehrerUid: new ObjectId().toHexString(), | ||
lehrerTitel: `lehrerTitel ${sequence}`, | ||
lehrerVorname: `lehrerVorname ${sequence}`, | ||
lehrerNachname: `lehrerNachname ${sequence}`, | ||
schuleNummer: `schuleNummer ${sequence}`, | ||
}; | ||
}); |
13 changes: 13 additions & 0 deletions
13
apps/server/src/infra/tsp-client/testing/robj-export-schueler-migration.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ObjectId } from '@mikro-orm/mongodb'; | ||
import { RobjExportSchuelerMigration } from '@infra/tsp-client'; | ||
import { Factory } from 'fishery'; | ||
|
||
export const robjExportSchuelerMigrationFactory = Factory.define< | ||
RobjExportSchuelerMigration, | ||
RobjExportSchuelerMigration | ||
>(() => { | ||
return { | ||
schuelerUidAlt: new ObjectId().toHexString(), | ||
schuelerUidNeu: new ObjectId().toHexString(), | ||
}; | ||
}); |
13 changes: 13 additions & 0 deletions
13
apps/server/src/infra/tsp-client/testing/robj-export-schueler.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ObjectId } from '@mikro-orm/mongodb'; | ||
import { RobjExportSchueler } from '@infra/tsp-client'; | ||
import { Factory } from 'fishery'; | ||
|
||
export const robjExportSchuelerFactory = Factory.define<RobjExportSchueler, RobjExportSchueler>(({ sequence }) => { | ||
return { | ||
schuelerUid: new ObjectId().toHexString(), | ||
schuelerVorname: `schuelerVorname ${sequence}`, | ||
schuelerNachname: `schuelerNachname ${sequence}`, | ||
schuleNummer: `schuleNummer ${sequence}`, | ||
klasseId: `klasseId ${sequence}`, | ||
}; | ||
}); |
9 changes: 9 additions & 0 deletions
9
apps/server/src/infra/tsp-client/testing/robj-export-schule.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { RobjExportSchule } from '@infra/tsp-client'; | ||
import { Factory } from 'fishery'; | ||
|
||
export const robjExportSchuleFactory = Factory.define<RobjExportSchule, RobjExportSchule>(({ sequence }) => { | ||
return { | ||
schuleName: `schuleName ${sequence}`, | ||
schuleNummer: `schuleNummer ${sequence}`, | ||
}; | ||
}); |
14 changes: 7 additions & 7 deletions
14
apps/server/src/modules/provisioning/dto/provisioning.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export class ProvisioningDto { | ||
externalUserId: string; | ||
|
||
constructor(provisioningDto: ProvisioningDto) { | ||
this.externalUserId = provisioningDto.externalUserId; | ||
} | ||
} | ||
export class ProvisioningDto { | ||
public externalUserId: string; | ||
|
||
constructor(provisioningDto: ProvisioningDto) { | ||
this.externalUserId = provisioningDto.externalUserId; | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
apps/server/src/modules/provisioning/loggable/school-for-group-not-found.loggable.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.