public LogTemplate(Activities activity, string username, UserRoles userRole) { this.activity = activity; this.username = username; this.userRole = userRole; }
public static void AssignUserRole(int userIndex, UserRoles role) { Logger.LogActivity("Промяна на роля на" + TestUsers[userIndex].username); TestUsers[userIndex].role = (int)role; }
static public void AssignUserRole(Int32 index, UserRoles ur) { testUsers[index].Role = (Int32)ur; Logger.LogActivity("Change role of " + testUsers[index].Username); }