Ejemplo n.º 1
0
        internal static ICustomer GetRandom()
        {
            PrivateCustomer result = new()
            {
                Forename           = ComplexDataStructureUtilities.GetRandomName(),
                Surname            = ComplexDataStructureUtilities.GetRandomName(),
                ContactPhoneNumber = ComplexDataStructureUtilities.GetRandomPhoneNumber(),
                MainResidence      = Address.GetRandom(),
                DateOfBirth        = ComplexDataStructureUtilities.GetRandomDateOfBirth()
            };

            return(result);
        }
Ejemplo n.º 2
0
        public static Employee GetRandom(OrganizationUnit organizationUnit = null)
        {
            Employee result = new()
            {
                OrganizationUnit = organizationUnit,
                Forename         = ComplexDataStructureUtilities.GetRandomName(),
                Surname          = ComplexDataStructureUtilities.GetRandomName(),
                DateOfBirth      = ComplexDataStructureUtilities.GetRandomDateOfBirth(),
                MainResidence    = Address.GetRandom()
            };

            return(result);
        }