Codebasis als Dateien ins Arbeitsrepo statt als Gitlink

QuellCode/CentronERP war nur als Gitlink (Submodul-Referenz auf 79c1142)
getrackt, ohne .gitmodules und ohne erreichbares Remote. Der
Untersuchungsgegenstand der Versuchsreihe war damit nicht reproduzierbar
gesichert: Ein Klon haette ein leeres Verzeichnis erhalten, und die Belege
der 3.287 Anforderungen waeren nicht ueberpruefbar gewesen.

Umstellung:
- Historie nach c:\DEV\CentronERP_git_snapshot_79c1142 ausgelagert
  (vollstaendig lesbar, enthaelt 79c1142 und Vorgaenger 89ccfd6)
- Gitlink aus dem Index entfernt
- Dateiinhalt aufgenommen: 24.557 Dateien, rund 333 MB

Die verschachtelte .gitignore der Codebasis gilt weiter, Build-Artefakte
bleiben ausgeschlossen. Details in Versuche/Versuch_01/_Codebasis-Nachweis.md
This commit is contained in:
Christoph Schwörer
2026-08-26 07:43:51 +02:00
parent 18edae75b6
commit f045b99a25
24664 changed files with 5846716 additions and 1 deletions
@@ -0,0 +1,778 @@
{
Data: [
{
AccountAddressContactI3D: 1,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 2,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 1,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 2,
Username: 'abortoli',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 40,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 73,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 2,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: 'f865b53623b121fd34ee5426c792e5c33af8c227',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 73,
Username: 'admin123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 23,
AccountAddressI3D: 16,
AccountI3D: 9,
AddressContactI3D: 41,
AddressI3D: 32,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10010,
EsRoleI3D: null,
I3D: 3,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 41,
Username: 'Melanie',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 43,
AccountAddressI3D: 33,
AccountI3D: 20,
AddressContactI3D: 75,
AddressI3D: 60,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10021,
EsRoleI3D: null,
I3D: 4,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 75,
Username: 'proteon',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 3,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 59,
AddressI3D: 1,
ChangedByI3D: 33,
ChangedDate: DateTime,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 5,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 59,
Username: 'tester',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 2,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 23,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 6,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 23,
Username: 'centron',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 41,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 84,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 7,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '5e8c490f3a0a384404ffc59b009da856d665ae0f',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 84,
Username: 'kunde123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 29,
AccountAddressI3D: 21,
AccountI3D: 11,
AddressContactI3D: 51,
AddressI3D: 41,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10012,
EsRoleI3D: null,
I3D: 8,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 51,
Username: 'werner',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
}
]
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,802 @@
{
Data: [
{
AccountAddressContactI3D: 1,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 2,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 1,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 2,
Username: 'abortoli',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 40,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 73,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 2,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: 'f865b53623b121fd34ee5426c792e5c33af8c227',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 73,
Username: 'admin123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 23,
AccountAddressI3D: 16,
AccountI3D: 9,
AddressContactI3D: 41,
AddressI3D: 32,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10010,
EsRoleI3D: null,
I3D: 3,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 41,
Username: 'Melanie',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 43,
AccountAddressI3D: 33,
AccountI3D: 20,
AddressContactI3D: 75,
AddressI3D: 60,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10021,
EsRoleI3D: null,
I3D: 4,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 75,
Username: 'proteon',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 3,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 59,
AddressI3D: 1,
ChangedByI3D: 33,
ChangedDate: DateTime,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 5,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 59,
Username: 'tester',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 2,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 23,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 6,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 23,
Username: 'centron',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 41,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 84,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 7,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '5e8c490f3a0a384404ffc59b009da856d665ae0f',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 84,
Username: 'kunde123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 29,
AccountAddressI3D: 21,
AccountI3D: 11,
AddressContactI3D: 51,
AddressI3D: 41,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10012,
EsRoleI3D: null,
I3D: 8,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 51,
Username: 'werner',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 1051,
AccountAddressI3D: 1040,
AccountI3D: 1027,
AddressContactI3D: 87,
AddressI3D: 67,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: 11,
CreatedDate: DateTime,
CustomerI3D: 10024,
EsRoleI3D: null,
I3D: 9,
LastLoginDate: null,
LastLoginIP: null,
Password: 'a761ce3a45d97e41840a788495e85a70d1bb3815',
Status: 1,
TwoFactorValidDurationInDays: 10,
Type: 2,
TypeI3D: 87,
Username: 'my-user',
UseTwoFactorAuthentication: true,
WebRights: []
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,7 @@
{
Data: 9,
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,802 @@
{
Data: [
{
AccountAddressContactI3D: 1,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 2,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 1,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 2,
Username: 'abortoli',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 40,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 73,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 2,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: 'f865b53623b121fd34ee5426c792e5c33af8c227',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 73,
Username: 'admin123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 23,
AccountAddressI3D: 16,
AccountI3D: 9,
AddressContactI3D: 41,
AddressI3D: 32,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10010,
EsRoleI3D: null,
I3D: 3,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 41,
Username: 'Melanie',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 43,
AccountAddressI3D: 33,
AccountI3D: 20,
AddressContactI3D: 75,
AddressI3D: 60,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10021,
EsRoleI3D: null,
I3D: 4,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 75,
Username: 'proteon',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 3,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 59,
AddressI3D: 1,
ChangedByI3D: 33,
ChangedDate: DateTime,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 5,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 59,
Username: 'tester',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 2,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 23,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 6,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 23,
Username: 'centron',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 41,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 84,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 7,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '5e8c490f3a0a384404ffc59b009da856d665ae0f',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 84,
Username: 'kunde123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 29,
AccountAddressI3D: 21,
AccountI3D: 11,
AddressContactI3D: 51,
AddressI3D: 41,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10012,
EsRoleI3D: null,
I3D: 8,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 51,
Username: 'werner',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 1051,
AccountAddressI3D: 1040,
AccountI3D: 1027,
AddressContactI3D: 87,
AddressI3D: 67,
ChangedByI3D: 11,
ChangedDate: DateTime,
CreatedByI3D: 11,
CreatedDate: DateTime,
CustomerI3D: 10024,
EsRoleI3D: null,
I3D: 9,
LastLoginDate: null,
LastLoginIP: null,
Password: 'a761ce3a45d97e41840a788495e85a70d1bb3815',
Status: 1,
TwoFactorValidDurationInDays: 10,
Type: 2,
TypeI3D: 87,
Username: 'my-new-username',
UseTwoFactorAuthentication: true,
WebRights: []
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,30 @@
{
Data: {
AccountAddressContactI3D: 1051,
AccountAddressI3D: 1040,
AccountI3D: 1027,
AddressContactI3D: 87,
AddressI3D: 67,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: 11,
CreatedDate: DateTime,
CustomerI3D: 10024,
EsRoleI3D: null,
I3D: 9,
LastLoginDate: null,
LastLoginIP: null,
Password: null,
Status: 1,
TwoFactorValidDurationInDays: 10,
Type: 2,
TypeI3D: 87,
Username: 'my-user',
UseTwoFactorAuthentication: true,
WebRights: []
},
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,7 @@
{
Data: 9,
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,802 @@
{
Data: [
{
AccountAddressContactI3D: 1,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 2,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 1,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 2,
Username: 'abortoli',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 40,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 73,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 2,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: 'f865b53623b121fd34ee5426c792e5c33af8c227',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 73,
Username: 'admin123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 23,
AccountAddressI3D: 16,
AccountI3D: 9,
AddressContactI3D: 41,
AddressI3D: 32,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10010,
EsRoleI3D: null,
I3D: 3,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 41,
Username: 'Melanie',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 43,
AccountAddressI3D: 33,
AccountI3D: 20,
AddressContactI3D: 75,
AddressI3D: 60,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10021,
EsRoleI3D: null,
I3D: 4,
LastLoginDate: DateTime,
LastLoginIP: '80.146.226.65',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 75,
Username: 'proteon',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 3,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 59,
AddressI3D: 1,
ChangedByI3D: 33,
ChangedDate: DateTime,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 5,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 59,
Username: 'tester',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 2,
AccountAddressI3D: 1,
AccountI3D: 1,
AddressContactI3D: 23,
AddressI3D: 1,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10000,
EsRoleI3D: null,
I3D: 6,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 23,
Username: 'centron',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Passwort ändern',
I3D: 11000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Mailen',
I3D: 12000,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
},
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Ist Kundenadministrator',
I3D: 31005,
Type: 3,
WebRightsCategories: {
Caption: 'Allgemein',
I3D: 1000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 41,
AccountAddressI3D: 31,
AccountI3D: 18,
AddressContactI3D: 84,
AddressI3D: 58,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10019,
EsRoleI3D: null,
I3D: 7,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '5e8c490f3a0a384404ffc59b009da856d665ae0f',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 84,
Username: 'kunde123',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Alle Tickets anzeigen',
I3D: 23000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets anzeigen',
I3D: 24000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket Historie anzeigen',
I3D: 25000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticket erstellen',
I3D: 26000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Ticketzeiten anzeigen',
I3D: 31000,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets bearbeiten',
I3D: 31001,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Alle Tickets abschließen',
I3D: 31002,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets bearbeiten',
I3D: 31003,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
},
{
Caption: 'Nur eigene Tickets abschließen',
I3D: 31004,
Type: 3,
WebRightsCategories: {
Caption: 'Helpdesk',
I3D: 2000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 29,
AccountAddressI3D: 21,
AccountI3D: 11,
AddressContactI3D: 51,
AddressI3D: 41,
ChangedByI3D: null,
ChangedDate: null,
CreatedByI3D: null,
CreatedDate: null,
CustomerI3D: 10012,
EsRoleI3D: null,
I3D: 8,
LastLoginDate: DateTime,
LastLoginIP: '::1',
Password: '7c222fb2927d828af22f592134e8932480637c0d',
Status: 1,
TwoFactorValidDurationInDays: null,
Type: 2,
TypeI3D: 51,
Username: 'werner',
UseTwoFactorAuthentication: false,
WebRights: [
{
Caption: 'Administration',
I3D: 61000,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Rechnungen anzeigen',
I3D: 61001,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Rechnungen anzeigen',
I3D: 61002,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Lieferscheine anzeigen',
I3D: 61003,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Lieferscheine anzeigen',
I3D: 61004,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Alle Gutschriften anzeigen',
I3D: 61005,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
},
{
Caption: 'Nur eigene Gutschriften anzeigen',
I3D: 61006,
Type: 3,
WebRightsCategories: {
Caption: 'Webcart',
I3D: 6000,
Type: 3
}
}
]
},
{
AccountAddressContactI3D: 1051,
AccountAddressI3D: 1040,
AccountI3D: 1027,
AddressContactI3D: 87,
AddressI3D: 67,
ChangedByI3D: 11,
ChangedDate: DateTime,
CreatedByI3D: 11,
CreatedDate: DateTime,
CustomerI3D: 10024,
EsRoleI3D: null,
I3D: 9,
LastLoginDate: null,
LastLoginIP: null,
Password: 'e16f0b90f8e70d157e397c216fa13e63524dd9d0',
Status: 1,
TwoFactorValidDurationInDays: 10,
Type: 2,
TypeI3D: 87,
Username: 'my-new-username',
UseTwoFactorAuthentication: true,
WebRights: []
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,6 @@
{
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,7 @@
{
Data: null,
Error: null,
Message: 'Der Benutzername ist bereits vergeben.',
MessageCode: 1,
Status: 2
}
@@ -0,0 +1,7 @@
{
Data: null,
Error: null,
Message: 'Der Benutzername ist bereits vergeben.',
MessageCode: 1,
Status: 2
}
@@ -0,0 +1,7 @@
{
Data: null,
Error: null,
Message: 'Der Benutzer Login ist bereits an Mitarbeiter admin (c-entron Administrator) vergeben.',
MessageCode: 1,
Status: 2
}
@@ -0,0 +1,274 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.Administration.Logins;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.WebServices.Administration.Logins;
using Centron.Data.Entities.Administration.Logins;
using Centron.Data.WebServices.Administration.Login;
using Centron.Tests.EndToEnd.Infrastructure;
using System;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.WebAccounts
{
public class WebAccountTests : EndToEndTest
{
public WebAccountTests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
this.Verifier.Settings.IgnoreProperty<WebAccountDTO>(f => f.CreatedVersion);
this.Verifier.Settings.IgnoreProperty<WebAccountDTO>(f => f.ChangedVersion);
}
public override void Execute()
{
this.GetAllWebAccounts("1_AllWebAccounts_Original");
this.CreateNewWebAccount("2");
this.GetAllWebAccounts("2_AllWebAccounts_AfterCreateNewWebAccount");
this.UpdateWebAccount("3");
this.GetAllWebAccounts("3_AllWebAccounts_AfterWebAccountUpdate");
this.UpdateWebAccountPassword("4");
this.GetAllWebAccounts("4_AllWebAccounts_AfterUpdatePassword");
this.TryLoginWithWebAccount();
this.RenameWebAccountToExistingName("5");
this.CreateNewWebAccountWithDuplicateName("6");
this.RenameWebAccountToExistingEmployeeName("7");
}
private void GetAllWebAccounts(string name)
{
using (var session = new BLSession())
{
var webAccounts = session.GetBL<WebAccountWebServiceBL>().GetAllWebAccounts();
this.Verifier.Verify(name, webAccounts);
}
}
private void CreateNewWebAccount(string namePrefix)
{
using (var session = new BLSession())
{
// This references AccountAddressContact 1051, Tobias Koerner
var webAccount = new WebAccountDTO
{
Username = "my-user",
Password = "supersecret",
Type = WebAccountDTO.TypeAddressContact,
TypeI3D = 87, //The same as the AddressContactI3D
AccountI3D = 1027,
AccountAddressI3D = 1040,
AccountAddressContactI3D = 1051,
CustomerI3D = 10024,
AddressI3D = 67,
AddressContactI3D = 87,
Status = 1, //1 is active, 0 is deactivated
UseTwoFactorAuthentication = true,
TwoFactorValidDurationInDays = 10,
};
var currentUser = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var loggedInUser = new LoggedInUser(currentUser);
var saveResult = session.GetBL<WebAccountWebServiceBL>().SaveWebAccount(webAccount, loggedInUser);
this.Verifier.Verify($"{namePrefix}_CreateNewAccountResult", saveResult);
}
}
private void UpdateWebAccount(string namePrefix)
{
WebAccountDTO webAccount;
using (var session = new BLSession())
{
var webAccountResult = session.GetBL<WebAccountWebServiceBL>().GetWebAccountByContactPersonI3D(87);
this.Verifier.Verify($"{namePrefix}_GetWebAccountByContactPersonI3D_87", webAccountResult);
webAccount = webAccountResult.Data;
}
using (var session = new BLSession())
{
var currentUser = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var loggedInUser = new LoggedInUser(currentUser);
webAccount.Username = "my-new-username";
var saveResult = session.GetBL<WebAccountWebServiceBL>().SaveWebAccount(webAccount, loggedInUser);
this.Verifier.Verify($"{namePrefix}_SaveWebAccount_Result", saveResult);
}
}
private void UpdateWebAccountPassword(string namePrefix)
{
WebAccountDTO webAccount;
using (var session = new BLSession())
{
var webAccountResult = session.GetBL<WebAccountWebServiceBL>().GetWebAccountByContactPersonI3D(87);
webAccount = webAccountResult.Data;
}
using (var session = new BLSession())
{
var currentUser = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var loggedInUser = new LoggedInUser(currentUser);
var updatePasswordResult = session.GetBL<WebAccountWebServiceBL>().UpdatePassword(webAccount.I3D, "my-new-password-super-secret", loggedInUser);
this.Verifier.Verify($"{namePrefix}_UpdatePassword_Result", updatePasswordResult);
}
}
private void TryLoginWithWebAccount()
{
// Correct username and password
const string Username = "my-new-username";
const string Password = "my-new-password-super-secret";
const int WebAccountI3D = 9;
// Test-Methods
static void LoginSuccess(string username, string password) => TryLogin(username, password, expectSuccess: true);
static void LoginError(string username, string password) => TryLogin(username, password, expectSuccess: false);
static void TryLogin(string username, string password, bool expectSuccess)
{
using var session = new BLSession();
var webAccount = session.GetBL<WebAccountBL>().LoginWithWebAccount(username, password);
if (expectSuccess)
{
Assert.NotNull(webAccount);
Assert.Equal(WebAccountI3D, webAccount.I3D);
}
else
{
Assert.Null(webAccount);
}
}
// Login works correctly when username and password are correct
LoginSuccess(Username, Password);
// Login doesn't work if incorrect username
LoginError(Username + "bla", Password);
// Login doesn't work if incorrect password
LoginError(Username, Password + "bla");
// Login doesn't work if web-account is deactivated
this.Sql($"UPDATE dbo.WebAccounts SET Status = 0 WHERE I3D = {WebAccountI3D}");
LoginError(Username, Password);
// Don't forget to reset the value for the next tests, and make sure login works again
this.Sql($"UPDATE dbo.WebAccounts SET Status = 1 WHERE I3D = {WebAccountI3D}");
LoginSuccess(Username, Password);
// Login doesn't work if contact-person is deactivated
this.Sql($"UPDATE dbo.Personen SET Status = 0 WHERE I3D = (SELECT PersonenI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginError(Username, Password);
// Don't forget to reset the value for the next tests, and make sure login works again
this.Sql($"UPDATE dbo.Personen SET Status = 1 WHERE I3D = (SELECT PersonenI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginSuccess(Username, Password);
// Login doesn't work if address is deactivated
this.Sql($"UPDATE dbo.Anschrif SET Status = 0 WHERE I3D = (SELECT AnschriftI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginError(Username, Password);
// Don't forget to reset the value for the next tests, and make sure login works again
this.Sql($"UPDATE dbo.Anschrif SET Status = 1 WHERE I3D = (SELECT AnschriftI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginSuccess(Username, Password);
// Login doesn't work if customer is deactivated
this.Sql($"UPDATE dbo.Kunden SET Status = 0 WHERE I3D = (SELECT KundenI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginError(Username, Password);
// Don't forget to reset the value for the next tests, and make sure login works again
this.Sql($"UPDATE dbo.Kunden SET Status = 1 WHERE I3D = (SELECT KundenI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginSuccess(Username, Password);
// Login doesn't work if customer is locked
this.Sql($"UPDATE dbo.Kunden SET Gesperrt = 1 WHERE I3D = (SELECT KundenI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginError(Username, Password);
// Don't forget to reset the value for the next tests, and make sure login works again
this.Sql($"UPDATE dbo.Kunden SET Gesperrt = 0 WHERE I3D = (SELECT KundenI3D FROM dbo.WebAccounts WHERE I3D = {WebAccountI3D})");
LoginSuccess(Username, Password);
}
private void RenameWebAccountToExistingName(string namePrefix)
{
WebAccountDTO webAccount;
using (var session = new BLSession())
{
var webAccountResult = session.GetBL<WebAccountWebServiceBL>().GetWebAccountByContactPersonI3D(87);
webAccount = webAccountResult.Data;
}
using (var session = new BLSession())
{
var currentUser = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var loggedInUser = new LoggedInUser(currentUser);
webAccount.Username = "admin123"; //An username that already exists
var saveResult = session.GetBL<WebAccountWebServiceBL>().SaveWebAccount(webAccount, loggedInUser);
this.Verifier.Verify($"{namePrefix}_UpdateWebAccount_DuplicateName_Result", saveResult);
}
}
private void CreateNewWebAccountWithDuplicateName(string namePrefix)
{
using (var session = new BLSession())
{
// This references AccountAddressContact 1051, Tobias Koerner
var webAccount = new WebAccountDTO
{
Username = "admin123", //A username that already exists
Password = "supersecret",
// Type = 2, //Always hardcoded to 2
// TypeI3D = 87, //The same as the AddressContactI3D
//
// AccountI3D = 1027,
// AccountAddressI3D = 1040,
// AccountAddressContactI3D = 1051,
//
// CustomerI3D = 10024,
// AddressI3D = 67,
// AddressContactI3D = 87,
//
// Status = 1 //1 is active, 0 is deactivated
};
var currentUser = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var loggedInUser = new LoggedInUser(currentUser);
var saveResult = session.GetBL<WebAccountWebServiceBL>().SaveWebAccount(webAccount, loggedInUser);
this.Verifier.Verify($"{namePrefix}_CreateNewAccount_DuplicateName_Result", saveResult);
}
}
private void RenameWebAccountToExistingEmployeeName(string namePrefix)
{
WebAccountDTO webAccount;
using (var session = new BLSession())
{
var webAccountResult = session.GetBL<WebAccountWebServiceBL>().GetWebAccountByContactPersonI3D(87);
webAccount = webAccountResult.Data;
}
using (var session = new BLSession())
{
var currentUser = session.GetBL<AppUserBL>().GetAppUser(f => f.I3D == 11);
var loggedInUser = new LoggedInUser(currentUser);
webAccount.Username = "admin"; //An employee username that already exists
var saveResult = session.GetBL<WebAccountWebServiceBL>().SaveWebAccount(webAccount, loggedInUser);
this.Verifier.Verify($"{namePrefix}_UpdateWebAccount_DuplicateName_Result", saveResult);
}
}
}
}