You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
739 B
26 lines
739 B
import { GetUniqueString } from "@/jslib/common/spec/utils"; |
|
|
|
import { GroupEntry } from "../src/models/groupEntry"; |
|
import { UserEntry } from "../src/models/userEntry"; |
|
|
|
export function userSimulator(userCount: number): UserEntry[] { |
|
const users: UserEntry[] = []; |
|
while (userCount > 0) { |
|
const userEntry = new UserEntry(); |
|
userEntry.email = GetUniqueString() + "@example.com"; |
|
users.push(userEntry); |
|
userCount--; |
|
} |
|
return users; |
|
} |
|
|
|
export function groupSimulator(groupCount: number): GroupEntry[] { |
|
const groups: GroupEntry[] = []; |
|
while (groupCount > 0) { |
|
const groupEntry = new GroupEntry(); |
|
groupEntry.name = GetUniqueString(); |
|
groups.push(groupEntry); |
|
groupCount--; |
|
} |
|
return groups; |
|
}
|
|
|