public SampleEmployee(EmployeeIdIdentifier employeeId, UpnIdentifier upnIdentifier)
            : this()
        {
            this.EmployeeId = employeeId;
            this.Upn        = upnIdentifier;

            this.Identifiers.Add(this.EmployeeId);
            this.Identifiers.Add(this.Upn);
        }
Beispiel #2
0
        private SampleEmployee CreateNewPerson(UpnIdentifier identifier)
        {
            EmployeeIdIdentifier id = new EmployeeIdIdentifier(DateTime.UtcNow.Ticks.ToString());

            var emp = new SampleEmployee(id, identifier);

            emp.Properties["compensation"] = "$100,000";
            emp.Properties["startdate"]    = "2-May-2008";

            if (identifier.IdentifierType.Matches(_secondaryIdentifierType))
            {
                Logger?.Debug($"Setting upn: {identifier}");

                emp.Upn = new UpnIdentifier(identifier.StringValue);
            }

            return(emp);
        }